Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!
all groups > iis ftp > june 2008 >

iis ftp : FTP Service fails at server command prompt


Daniel Mazur
6/7/2008 7:14:44 PM

Hello,

I am having trouble with FTP service from a command prompt. The service =
is working in every way via ftp service used by internet explorer =
(ftp://administrator:*******@domain IP), and by WS_FTP PRO, but again, =
something is funky with the command prompt access.

When at a command prompt from the Windows 2003 Server with FTP service, =
every time I use the DIR command, or anything else after input of my =
logon name and password, I always get error 500 and 150. Here is an =
example;

Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\Documents and Settings\Administrator>ftp
ftp> open 70.147.**.***
Connected to 70.147.**.***.
220 Microsoft FTP Service
User (70.147.**.***:(none)): administrator
331 Password required for administrator.
Password:
230 User administrator logged in.
ftp> dir
500 Invalid PORT Command.
150 Opening ASCII mode data connection for /bin/ls.
425 Can't open data connection.
ftp>


However, when I go to a command prompt from another computer miles away, =
connected to the internet, and try the same commands, it works. Here is =
an example;


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Daniel Mazur>ftp
ftp> open 70.147.21.220
Connected to 70.147.21.220.
220 Microsoft FTP Service
User (70.147.21.220:(none)): administrator
331 Password required for administrator.
Password:
230 User administrator logged in.
ftp> dir
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
06-05-08 09:25AM 0 New Text Document.txt
06-06-08 09:51AM 1404 PO850B003.850
06-06-08 09:51AM 1404 PO850B004.850
06-06-08 09:51AM 1404 PO850B005.850
06-05-08 09:25AM <DIR> test 1
06-05-08 09:25AM <DIR> test 2
226 Transfer complete.
ftp: 318 bytes received in 0.02Seconds 19.88Kbytes/sec.
ftp>

Why won't the commands work on the local PC? They once did, and work on =
other 2003 servers I have. I uninstalled and reinstalled FTP service. =
Bernard Cheah [MVP]
6/23/2008 9:55:51 AM
Ohh you post a new thread... in this case.

you are ftping from the same server using public ip ? then it is internal
routing/nating issue.
internally you should use internal ip rather than public.

and your pub ip works as per your second log posting.

--
Regards,
Bernard Cheah
http://www.iis.net/
http://msmvps.com/blogs/bernard/


[quoted text, click to view]

Hello,

I am having trouble with FTP service from a command prompt. The service is
working in every way via ftp service used by internet explorer
(ftp://administrator:*******@domain IP), and by WS_FTP PRO, but again,
something is funky with the command prompt access.

When at a command prompt from the Windows 2003 Server with FTP service,
every time I use the DIR command, or anything else after input of my logon
name and password, I always get error 500 and 150. Here is an example;

Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\Documents and Settings\Administrator>ftp
ftp> open 70.147.**.***
Connected to 70.147.**.***.
220 Microsoft FTP Service
User (70.147.**.***:(none)): administrator
331 Password required for administrator.
Password:
230 User administrator logged in.
ftp> dir
500 Invalid PORT Command.
150 Opening ASCII mode data connection for /bin/ls.
425 Can't open data connection.
ftp>


However, when I go to a command prompt from another computer miles away,
connected to the internet, and try the same commands, it works. Here is an
example;


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Daniel Mazur>ftp
ftp> open 70.147.21.220
Connected to 70.147.21.220.
220 Microsoft FTP Service
User (70.147.21.220:(none)): administrator
331 Password required for administrator.
Password:
230 User administrator logged in.
ftp> dir
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
06-05-08 09:25AM 0 New Text Document.txt
06-06-08 09:51AM 1404 PO850B003.850
06-06-08 09:51AM 1404 PO850B004.850
06-06-08 09:51AM 1404 PO850B005.850
06-05-08 09:25AM <DIR> test 1
06-05-08 09:25AM <DIR> test 2
226 Transfer complete.
ftp: 318 bytes received in 0.02Seconds 19.88Kbytes/sec.
ftp>

Why won't the commands work on the local PC? They once did, and work on
other 2003 servers I have. I uninstalled and reinstalled FTP service. No
change. Any ideas?

AddThis Social Bookmark Button