HOWTO use FtpConnection with a non default port

Mar 17, 2010 at 10:17 AM


I try to use the Connect("ftpserver:2121") method to connect to an ftpserver with a non default port. Maybe it is not the best method because always get this error message: Unknown error (0x2ee7).

Is it possible to connect over port 2121?

Thanks in advance for your help.

Mar 18, 2010 at 5:02 PM

I've added  a Port property to the FtpConnection class. You can now either either specify the port in the constructor, or by changing the Port property. If unspecified, the default port is still 21.

To get the changes, either downloaded the latest revision, or the new recommended release, v1.0.1.1