all groups > iis ftp > june 2006 >
You're in the

iis ftp

group:

FTP Command Line Question


FTP Command Line Question Michael
6/16/2006 2:25:26 PM
iis ftp: 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.

Re: FTP Command Line Question Robin Walker [MVP]
6/16/2006 11:03:17 PM
[quoted text, click to view]

ftp -n

then as an ftp command:

open ftp.domain.com 7721

[quoted text, click to view]

If the login is password protected, then send IE to

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

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

Re: FTP Command Line Question Bernard Cheah [MVP]
6/18/2006 12:00:00 AM
Refer -
How to Connect to a Web or FTP Site Using Non-Default Port
http://support.microsoft.com/?id=229005

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


[quoted text, click to view]

Re: FTP Command Line Question Michael
6/19/2006 11:29:11 AM
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.


[quoted text, click to view]

Re: FTP Command Line Question Michael
6/19/2006 1:24:53 PM
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?


[quoted text, click to view]

Re: FTP Command Line Question Robin Walker [MVP]
6/19/2006 6:59:45 PM
[quoted text, click to view]

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.

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

Re: FTP Command Line Question Robin Walker [MVP]
6/19/2006 11:16:09 PM
[quoted text, click to view]

They can be configured either way.

[quoted text, click to view]

Command-line FTP is active mode only.

IE is supposedly configurable, but is quirky.

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

AddThis Social Bookmark Button