aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes FTP Client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "FTP Client" Watch "FTP Client" New topic
Author

FTP Client

Peter Phung
Ranch Hand

Joined: Dec 06, 2001
Posts: 138
I'm writing an ftp client in java. I'm currently in the testing phase but i'm getting an odd response from my server
500 Illegal PORT Command
Can anyone tell me what this means and what i can do about it?
Thanks for any help


Pete<br />"Reality is an illusion <br />brought on by a lack of <br />drink, drugs and smut"
Aaron Dressin
Greenhorn

Joined: May 10, 2002
Posts: 29
Sounds like you are attempting to use port mode and sending an invalid callback IP address to the FTP server. Maybe you are sending an IP on an internal LAN:

[ June 17, 2002: Message edited by: Aaron Dressin ]

-Aaron
Peter Phung
Ranch Hand

Joined: Dec 06, 2001
Posts: 138
What do you suggest i should do?
[ June 18, 2002: Message edited by: Peter Phung ]
aditya mahajan
Greenhorn

Joined: Jul 13, 2001
Posts: 8
Instead of port use pasv, parse the reply and open the socket on the port given by the server.
pasv is same as port but the ftp server gives the port on which it will be sending information.
Look into the RFC of FTP to get the complete information.

aditya
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: FTP Client