I want to connect to the FTP server through my servlet, and I know that it works, but to use it on my virtual server I need to change the port that the servlet is connected to, because the FTP server does not use the standard port.
My problem is that I do not know how I can tell FTPClient not to use port 21. For example, it should use port "55555".
FTPClient only wants one parameter, ip, to connect.
using org.apache.commons.net.ftp FTPClient ftp = new FTPClient(); ftp.connect("dyndns");
best snown
java apache servlets ftp ftp-client
Paixsn
source share