The problem is the connect to the proxy. I use this code:
FTPClient ftp = new FTPClient("220.127.116.11", 8080);
2 Minutes later (timeout ?) I get the following IOException:
- Unexpected null reply received
Additionally I tried to define some VM-Parameters with the same result (helpful with URL classes):
What it is saying is use the firewall machine as the host to connect to, and use email@example.com
as the user, and remotepassword as the password.
One of the FTPClient constructors allows you to supply a port number along with the host (which should be the firewall).
I have the same problem. I must use a http-proxy which can be conntected only via the port 8080 (no password and user required). Reading the documentation of edtFTPj, I found your hint using the constructor with parameters FTPClient(firewallmachine, firstname.lastname@example.org
, remotepassword) - but:
- in the JavaDoc no such cunstructor is specified!
- how should the port of the proxy be defined?
By the way, my tests using java classes java.net.URL and java.net.URLConnection to access the ftp-server via the http-proxy has been successful.
Using the following for (host,user,password) supplied to edtFTPj's FTPClient?
i.e. the remote machine is the firewall, the user is the login for the remote machine followed by '@' and then the remote host, and the password is the remote host's password for the user.
no effect :(