Has anyone been able to use FTP commands from within a servlet to transfer data from a remote server? I am having problems with the 'port' command in particular. I have been able to log in correctly using the ftp commands. Here is the line of code and reply message:
outputStream.println("port " + ip1 + "," + ip2 + "," + ip3 + "," + ip4 + "," + port1 + "," + port2);
The server reply is 500 'PORT 999,999,0,6, 5,102': command not understood
(the actual ip address is correct).
Based on what I have found, the syntax looks to be correct.
Any help much appreciated.
outputStream.println("port " + ip1 + "," + ip2 + "," + ip3 + "," + ip4 + "," + port1 + "," + port2);
The server reply is 500 'PORT 999,999,0,6, 5,102': command not understood
(the actual ip address is correct).
Based on what I have found, the syntax looks to be correct.
Any help much appreciated.