Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

FTP Client

 
Peter Phung
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Aaron Dressin
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Peter Phung
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you suggest i should do?
[ June 18, 2002: Message edited by: Peter Phung ]
 
aditya mahajan
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic