This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: FTP Client
 
Similar Threads
doubt about ftp
FTP Client
FTP server
FTP data type
how to download files from a remote server via java code?