+1 vote

Hi,

I am testing your library and have successfully connected to several ftp servers. However one is set up using TLS/SSL with port 27 and I just want to verify if this at all is possible with your library?

Thanks
Sten

by

1 Answer

0 votes
 
Best answer

The default FTP port is 21.
FTPS (FTP over implicit SSL/TLS) uses port 990 by default.

You can use Connect and ConnectSSL method overloads to connect using a different port:

ConnectSSL("ftp.example.com", 27);

You can learn more on explicit and implicit SSL here:

https://www.limilabs.com/blog/use-ssl-with-ftp-explicit

https://www.limilabs.com/blog/use-ssl-with-ftp-ftps

by (301k points)
...