Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java and FTP commands

Status
Not open for further replies.

dhammy

Programmer
Aug 22, 2001
2
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top