500 Invalid PORT Command
Hi,
I have setup an FTP site into my windows server 2008 installation. Everything is working perfectly if I'm connecting locally (192.168.1."server IP")
But when trying to connect using using my ISP static IP I got the following error :
STATUS:> [2009-07-19 01:02:18] Getting listing ""...
STATUS:> [2009-07-19 01:02:18] Connecting to FTP server... XX.XX.XX.XX:21 (ip = XX.XX.XX.XX)...
STATUS:> [2009-07-19 01:02:18] Socket connected. Waiting for welcome message...
[2009-07-19 01:02:18] 220 Microsoft FTP Service
STATUS:> [2009-07-19 01:02:18] Connected. Authenticating...
COMMAND:> [2009-07-19 01:02:18] USER XXX
[2009-07-19 01:02:18] 331 Password required for Jonathan.
COMMAND:> [2009-07-19 01:02:18] PASS XXX
[2009-07-19 01:02:18] 230 User Jonathan logged in.
STATUS:> [2009-07-19 01:02:18] Login successful.
COMMAND:> [2009-07-19 01:02:18] PWD
[2009-07-19 01:02:18] 257 "/" is current directory.
STATUS:> [2009-07-19 01:02:18] Home directory: /
COMMAND:> [2009-07-19 01:02:18] REST 100
[2009-07-19 01:02:18] 350 Restarting at 100.
STATUS:> [2009-07-19 01:02:18] This site can resume broken downloads.
COMMAND:> [2009-07-19 01:02:18] REST 0
[2009-07-19 01:02:18] 350 Restarting at 0.
COMMAND:> [2009-07-19 01:02:18] PASV
[2009-07-19 01:02:18] 227 Entering Passive Mode (XX,XX,XX,XX,192,191).
STATUS:> [2009-07-19 01:02:18] Substituting received PASV address XX.XX.XX.XX (Local IP) to server address XX.XX.XX.XX (ISP IP).
COMMAND:> [2009-07-19 01:02:18] LIST
STATUS:> [2009-07-19 01:02:18] Connecting FTP data socket... XX.XX.XX.XX:49343...
ERROR:> [2009-07-19 01:02:39] The connection failed due to an error or timeout.
1) Verify that the destination IP address is correct.
2) Increase the connection timeout threshold under Global Settings | Connection.
3) Switch to the opposite data connection type (PASV or PORT) under Site Settings | Type tab.
4) Verify that the problem is not local by trying to connect to an alternate server.
5) If a server name was used, verify it resolves to the correct address.
6) If using a local server table for server name resolution, check to see that it doesn't resolve to an obsolete address.
7) Try pinging the address.
8) If you are using a router, verify the router is up and running (check by pinging it and then ping an address outside of the router).
9) Do a traceroute to the destination to verify all routers along the connection path are operational.
10) Verify that your subnet mask is setup properly.
11) Verify that your local software or hardware firewall is not blocking outbound connections originating from CuteFTP.
12) Verify that your anti-virus software is not at fault (try disabling it).
ERROR:> [2009-07-19 01:02:39] PASV failed, trying PORT.
STATUS:> [2009-07-19 01:02:39] Waiting 0 seconds...
STATUS:> [2009-07-19 01:02:39] Getting listing "/"...
STATUS:> [2009-07-19 01:02:39] Connecting to FTP server... XX.XX.XX.XX:21 (ip = XX.XX.XX.XX)...
STATUS:> [2009-07-19 01:02:39] Socket connected. Waiting for welcome message...
[2009-07-19 01:02:39] 220 Microsoft FTP Service
STATUS:> [2009-07-19 01:02:39] Connected. Authenticating...
COMMAND:> [2009-07-19 01:02:39] USER XX
[2009-07-19 01:02:39] 331 Password required for Jonathan.
COMMAND:> [2009-07-19 01:02:39] PASS XX
[2009-07-19 01:02:39] 230 User XX logged in.
STATUS:> [2009-07-19 01:02:39] Login successful.
COMMAND:> [2009-07-19 01:02:39] PWD
[2009-07-19 01:02:39] 257 "/" is current directory.
STATUS:> [2009-07-19 01:02:39] Home directory: /
STATUS:> [2009-07-19 01:02:39] This site can resume broken downloads.
COMMAND:> [2009-07-19 01:02:39] REST 0
[2009-07-19 01:02:39] 350 Restarting at 0.
COMMAND:> [2009-07-19 01:02:39] PORT XX,XX,XX,30,24,106
[2009-07-19 01:02:39] 500 Invalid PORT Command.
ERROR:> [2009-07-19 01:02:39] Syntax error: command unrecognized.
ERROR:> [2009-07-19 01:02:39] Failed to establish data socket.
[2009-07-19 01:05:36] 421 Timeout (120 seconds): closing control connection.
ERROR:> [2009-07-19 01:05:36] Trashed response received.
Is there somebody that can help me on that, I passed all day and all night on this... I was sure it was related to my router but everything seems to be ok, I have open the port 21 to my server... I have tryed to disable the firewall into my windows server and also on my computer.
Thanks for your help!
Jonathan
July 19th, 2009 8:18am
Is there somebody that can help me on this?Thanks.
Free Windows Admin Tool Kit Click here and download it now
July 19th, 2009 8:48pm
Hello,From the error message, it seems that this could be a network timeout issue. Did you have chance to follow the sequence steps by steps to troubleshoot it? was it helpful?
ERROR:> [2009-07-19 01:02:39] The connection failed due to an error or timeout.
1) Verify that the destination IP address is correct.
2) Increase the connection timeout threshold under Global Settings | Connection.
3) Switch to the opposite data connection type (PASV or PORT) under Site Settings | Type tab.
4) Verify that the problem is not local by trying to connect to an alternate server.
5) If a server name was used, verify it resolves to the correct address.
6) If using a local server table for server name resolution, check to see that it doesn't resolve to an obsolete address.
7) Try pinging the address.
8) If you are using a router, verify the router is up and running (check by pinging it and then ping an address outside of the router).
9) Do a traceroute to the destination to verify all routers along the connection path are operational.
10) Verify that your subnet mask is setup properly.
11) Verify that your local software or hardware firewall is not blocking outbound connections originating from CuteFTP.
12) Verify that your anti-virus software is not at fault (try disabling it).Thanks and regards,Scorprio
MCTS: Windows Vista | Exchange Server 2007 MCITP: Enterprise Support Technician | Server & Enterprise Admin
July 20th, 2009 1:42pm
Thanks for your answer, I will make these test today or tomorrow.Thanks for helping.Jonathan
Free Windows Admin Tool Kit Click here and download it now
July 28th, 2009 7:05pm


