From: Pascal on
Hi Jim,

I have the same problem, and found out that when using any port other than 21 it works just fine.
I suspect a stateful router/proxy on windows server.

Did you solve the problem?

Thanks,
Pascal.




Jim in Arizona wrote:

RRAS NAT & FTP Clients
27-Feb-08

We have a Win2003 server as our proxy running NAT. When attempting to FTP
into any ftp server using a command prompt (DOS FTP), it will connect but
any commands beyond that will just hang, like 'ls' or 'dir'.

I looked around for a solution and found that if you issue this command on
the NAT box that it should fix the problem:

netsh routing ip nat add ftp

I then restarted the RRAS service. I found that using windows explorer for
FTP works fine, but when using the command line FTP, it still hangs in the
same way:

C:\WINDOWS>ftp ftp.microsoft.com
Connected to ftp.microsoft.com.
220 Microsoft FTP Service
User (ftp.microsoft.com:(none)): anonymous
331 Anonymous access allowed, send identity (e-mail name) as password.
Password:
230-Welcome to FTP.MICROSOFT.COM. Also visit
http://www.microsoft.com/downloads.
230 User logged in.
ftp> dir
501 Server cannot accept argument.
150 Opening ASCII mode data connection.

It hangs at 150.

Any Ideas?

TIA,
Jim

Previous Posts In This Thread:

On Wednesday, February 27, 2008 10:49 AM
Jim in Arizona wrote:

RRAS NAT & FTP Clients
We have a Win2003 server as our proxy running NAT. When attempting to FTP
into any ftp server using a command prompt (DOS FTP), it will connect but
any commands beyond that will just hang, like 'ls' or 'dir'.

I looked around for a solution and found that if you issue this command on
the NAT box that it should fix the problem:

netsh routing ip nat add ftp

I then restarted the RRAS service. I found that using windows explorer for
FTP works fine, but when using the command line FTP, it still hangs in the
same way:

C:\WINDOWS>ftp ftp.microsoft.com
Connected to ftp.microsoft.com.
220 Microsoft FTP Service
User (ftp.microsoft.com:(none)): anonymous
331 Anonymous access allowed, send identity (e-mail name) as password.
Password:
230-Welcome to FTP.MICROSOFT.COM. Also visit
http://www.microsoft.com/downloads.
230 User logged in.
ftp> dir
501 Server cannot accept argument.
150 Opening ASCII mode data connection.

It hangs at 150.

Any Ideas?

TIA,
Jim


Submitted via EggHeadCafe - Software Developer Portal of Choice
BizTalk Custom Pipeline for Splitting Messages
http://www.eggheadcafe.com/tutorials/aspnet/a0786aaf-c159-40ff-9cf6-241d5e325f42/biztalk-custom-pipeline-f.aspx