This project is read-only.

Need of port 21 on Secure mode?

Sep 29, 2010 at 11:05 AM

Hi,

I am using Alex FTPS to connect to Filezilla server in secure mode.
I am using the following code to connect to the server:

FTPSClient ftpsClient = new FTPSClient();
ftpsClient.Connect(Host, new NetworkCredential(User, Password), ESSLSupportMode.CredentialsRequired | ESSLSupportMode.DataChannelRequested, VerifyCertificate);

But it fails to connect to the server. I have the port 990 open in the firewall but the port 21 is blocked.

My question is do I need to have port 21 also opened?

Regards,
Vaibhav 

Sep 29, 2010 at 12:23 PM

Hi,

by default port 21 is used on explicit FTPS connections and port 990 for implicit connections.

By the code you posted, you're connecting in explicit mode.

 

Cheers,

Alessandro Pilotti

[MVP / IIS]

 

 

Sep 29, 2010 at 1:08 PM

Hi,

Can you let me know how to do it?

Regards,
Vaibhav 

Sep 29, 2010 at 1:18 PM

Hi Vaibhav,

please check the home page of this project. There are usage samples for both command line and library and explanations about explicit / explicit FTPS differences.

After reading it, if something is not clear, please feel free to ask.

 

Cheers,

Alessandro Pilotti

[MVP / IIS]