Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
6.3k views
in .NET FTP by (320 points)
Hi,
some times i get this error "501 Syntax error in IP address", So i reconnect again. For me the error disappears if i reconnect but when i tested it on other machines the error doesn't disappears so my program becomes useless because it's not working on all machines.

A portion of the debug file:
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 20 Sep 2006 23:16:15.140 : ---> CWD /public_html/ftptest/
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 20 Sep 2006 23:16:16.328 : 250 OK. Current directory is /public_html/ftptest
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 20 Sep 2006 23:16:16.343 : ---> PWD
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 20 Sep 2006 23:16:16.531 : 257 "/public_html/ftptest" is your current location
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 20 Sep 2006 23:16:16.546 : ---> SYST
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 20 Sep 2006 23:16:16.734 : 215 UNIX Type: L8
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 20 Sep 2006 23:16:16.750 : NewActiveDataSocket(0)
INFO [EnterpriseDT.Net.Ftp.FTPControlSocket] 20 Sep 2006 23:16:16.750 : Forcing use of fixed IP for PORT command
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 20 Sep 2006 23:16:16.750 : ---> PORT 0,0,0,0,8,2
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 20 Sep 2006 23:16:16.953 : 501 Syntax error in IP address
ERROR [EnterpriseDT.Net.Ftp.FTPControlSocket] 20 Sep 2006 23:16:16.953 : Failed to create listening socket : Syntax error in IP address (code=501)
EnterpriseDT.Net.Ftp.FTPException: Syntax error in IP address (code=501)
   at EnterpriseDT.Net.Ftp.FTPControlSocket.ValidateReply(FTPReply reply, String expectedReplyCode)
   at EnterpriseDT.Net.Ftp.FTPControlSocket.SetDataPort(IPEndPoint ep)
   at EnterpriseDT.Net.Ftp.FTPControlSocket.NewActiveDataSocket(Int32 port)



What i should do?


Thanks

2 Answers

0 votes
by (162k points)
Are you able to connect in passive mode? That will certainly fix this problem (which seems to be a dodgy IP address for your host).
0 votes
by (320 points)
Thanks alot for your help, Yes i was able to connect in passive mode.

Categories

...