If you are using the constructor:
FTPClient(String remoteHost, int controlPort,
PrintWriter log, int timeout)
I've noticed that there is a bug - change line 251 (in 1.3.0) in FTPClient.java from
this(InetAddress.getByName(remoteHost), FTPControlSocket.CONTROL_PORT, log, timeout);
to
this(InetAddress.getByName(remoteHost), controlPort, log, timeout);
Alternatively, this will be fixed in 1.3.1
int controlPort
If I set it to 21 it connects to FTP but if I have the FTP set to a different port and change the 21 to a different one it can't connect to ftp.
What do i have to do to mnake it possible to connect to other ports?
Thx in advance I am testing the library atm and I like it :)