Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows Server 2003Windows 2000Windows NTSmall Business ServerVirtual ServerExchange ServerIISHost Integration ServerISA ServerSMSWSUSMOMWindows Media ServerSecurityCertification
Related Topics
SQL ServerMS WindowsMS OfficePC HardwareMore Topics ...

Windows Server Forum / IIS / FTP / June 2006

Tip: Looking for answers? Try searching our database.

FTP Command Line Question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael - 16 Jun 2006 20:25 GMT
Greetings,

I have a FTP site (IIS 6.0) set up on port 7721.  What is the command line
syntax to use on a windows machine to attach to this?

I tried ftp ftp.domain.com :7721
and
ftp ftp.domain.com 7721

And neither works.

I can ftp via command line through Unix just fine.

In addition, when I try to go to ftp://ftp.domain.com:7721 via IE I get the
following error:

An error occurred opening the folder on the FTP server. Make sure you have
permission to access this folder.

Details:  The operation timed out.

Any help would be appreciated.  Thank you.
Robin Walker [MVP] - 16 Jun 2006 23:03 GMT
> I have a FTP site (IIS 6.0) set up on port 7721.  What is the command
> line syntax to use on a windows machine to attach to this?
[quoted text clipped - 4 lines]
>
> And neither works.

ftp -n

then as an ftp command:

open ftp.domain.com 7721

> In addition, when I try to go to ftp://ftp.domain.com:7721 via IE I
> get the following error:
>
> An error occurred opening the folder on the FTP server. Make sure you
> have permission to access this folder.

If the login is password protected, then send IE to

ftp://username@ftp.domain.com:7721/

Signature

Robin Walker [MVP Networking]
rdhw@cam.ac.uk

Michael - 19 Jun 2006 17:29 GMT
Thanks guys for the responses.   Still have about the same issue though.

I can use the ftp -n and log on correctly.  However, just a simple "ls" or
"dir" will time out- it will never come back.  Same issue using IE.   I get
the same error using

ftp://username@ftp.domain.com:7721/

I authenticate just fine, but never get any listing of files.

Now, if I use some other FTP client (CuteFTP, WinFTP) everything works
great.  I can upload, download, etc.

The FTP server IS behind a NAT firewall, if that makes a difference.

>> I have a FTP site (IIS 6.0) set up on port 7721.  What is the command
>> line syntax to use on a windows machine to attach to this?
[quoted text clipped - 20 lines]
>
> ftp://username@ftp.domain.com:7721/
Robin Walker [MVP] - 19 Jun 2006 18:59 GMT
> I can use the ftp -n and log on correctly.  However, just a simple
> "ls" or "dir" will time out- it will never come back.  Same issue
[quoted text clipped - 8 lines]
>
> The FTP server IS behind a NAT firewall, if that makes a difference.

I can only reconcile what you have said above if the FTP *client* is behind
a NAT router, not the *server*.

Your average NAT router cannot process Active PORT-mode FTP connections made
to non-standard ports (i.e. other than port 21).  Passive-mode connections
will work to non-standard ports.

Your use of port 7721 is non-standard, so NAT routers cannot do their magic.

Signature

Robin Walker [MVP Networking]
rdhw@cam.ac.uk

Michael - 19 Jun 2006 19:24 GMT
Hmmm.  Both the client AND the server are actually behind NAT
routers/firewalls.

So, does this mean that CuteFTP and WSFTP are using passive connections,
whereas command line utilities and IE are using active mode?

>> I can use the ftp -n and log on correctly.  However, just a simple
>> "ls" or "dir" will time out- it will never come back.  Same issue
[quoted text clipped - 18 lines]
> Your use of port 7721 is non-standard, so NAT routers cannot do their
> magic.
Robin Walker [MVP] - 19 Jun 2006 23:16 GMT
> Hmmm.  Both the client AND the server are actually behind NAT
> routers/firewalls.
>
> So, does this mean that CuteFTP and WSFTP are using passive
> connections,

They can be configured either way.

> whereas command line utilities and IE are using active mode?

Command-line FTP is active mode only.

IE is supposedly configurable, but is quirky.

Signature

Robin Walker [MVP Networking]
rdhw@cam.ac.uk

Bernard Cheah [MVP] - 18 Jun 2006 06:29 GMT
Refer -
How to Connect to a Web or FTP Site Using Non-Default Port
http://support.microsoft.com/?id=229005

Signature

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

> Greetings,
>
[quoted text clipped - 18 lines]
>
> Any help would be appreciated.  Thank you.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.