Microsoft Windows Vista Community Forums - Vistaheads
Recommended Download



Welcome to the Microsoft Windows Vista Community Forums - Vistaheads, YOUR Largest Resource for Windows Vista related information.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so , join our community today!

If you have any problems with the registration process or your account login, please contact us.

Driver Scanner

FTP DIR Hangs in Vista

microsoft.public.windows.vista.security






Speedup My PC
Reply
  #1 (permalink)  
Old 07-06-2007
MicroMite
 

Posts: n/a
FTP DIR Hangs in Vista
I have a simple batch FTP script that hangs in Vista on a DIR command, but
works in XP.

Script
Open ipaddress
username
pwd
prompt
dir

Any help would be greatly apprecitated...Thanks
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-07-2007
 

Posts: n/a
Re: FTP DIR Hangs in Vista
"MicroMite" <MicroMite@discussions.microsoft.com> wrote in message
news:8E90F0D1-1290-4EF0-9F10-1F2DC2FDECF2@microsoft.com...
>I have a simple batch FTP script that hangs in Vista on a DIR command, but
> works in XP.
>
> Script
> Open ipaddress
> username
> pwd
> prompt
> dir
>
> Any help would be greatly apprecitated...Thanks



Probably because the firewall hasn't been set up to allow ftp.exe as a
listening program.

FTP has two modes of operation - passive and active. The command-line FTP
client in Windows (and, let's face it, pretty much every other operating
system) uses active mode, which means that the FTP server must connect to
the FTP client on a random port that the FTP client sends to the server.

Try turning on debug (ftp -d) to view what commands are sent to the server,
to see what I'm talking about.

Alun.
~~~~
Texas Imperial Software | Web: http://www.wftpd.com/
23921 57th Ave SE | Blog: http://msmvps.com/alunj/
Woodinville WA 98072-8661 | WFTPD, WFTPD Pro are Windows FTP servers.
Fax/Voice +1(425)807-1787 | Try our client software, WFTPD Explorer.

Reply With Quote
  #3 (permalink)  
Old 07-07-2007
MicroMite
 

Posts: n/a
Re: FTP DIR Hangs in Vista
Thanks for you help. I checked and my firewall service in Vista is not
started so I assume that can't be the problem. I agree, however, that it
seems like a firewall problem. I also tried using debug mode and passive
mode. I wasn't sure how to enable passive mode but I think I did it by
sending the "PASV" command to the other server by using "Quote PASV" command.
Unfortunately, It still hangs (see below) in passive mode.

Ftp
C:\Users\xxxxxx>ftp -d
ftp> open 99.999.99.999
Connected to 99.999.99.999.
220-Microsoft FTP Service
220 xxxxxxx welcomes you to their FTP site. Authorized personnel only,
ease.
User (99.999.99.999none)): xxxxxx
---> USER xxxxxxx
331 Password required for xxxxxxx.
Password:
---> PASS xxxxxxx
230 User xxxxxxx logged in.
ftp> prompt
Interactive mode Off .
ftp> quote pasv
---> pasv
227 Entering Passive Mode (66,240,31,227,5,97).
ftp> dir
---> PORT 192,168,1,102,193,4
200 PORT command successful.
---> LIST
150 Opening ASCII mode data connection for /bin/ls.
(hangs indefinetely at this point - must ctrl-c out)



"alun@texis.invalid" wrote:

> "MicroMite" <MicroMite@discussions.microsoft.com> wrote in message
> news:8E90F0D1-1290-4EF0-9F10-1F2DC2FDECF2@microsoft.com...
> >I have a simple batch FTP script that hangs in Vista on a DIR command, but
> > works in XP.
> >
> > Script
> > Open ipaddress
> > username
> > pwd
> > prompt
> > dir
> >
> > Any help would be greatly apprecitated...Thanks

>
>
> Probably because the firewall hasn't been set up to allow ftp.exe as a
> listening program.
>
> FTP has two modes of operation - passive and active. The command-line FTP
> client in Windows (and, let's face it, pretty much every other operating
> system) uses active mode, which means that the FTP server must connect to
> the FTP client on a random port that the FTP client sends to the server.
>
> Try turning on debug (ftp -d) to view what commands are sent to the server,
> to see what I'm talking about.
>
> Alun.
> ~~~~
> Texas Imperial Software | Web: http://www.wftpd.com/
> 23921 57th Ave SE | Blog: http://msmvps.com/alunj/
> Woodinville WA 98072-8661 | WFTPD, WFTPD Pro are Windows FTP servers.
> Fax/Voice +1(425)807-1787 | Try our client software, WFTPD Explorer.
>

Reply With Quote
  #4 (permalink)  
Old 07-09-2007
 

Posts: n/a
Re: FTP DIR Hangs in Vista
"MicroMite" <MicroMite@discussions.microsoft.com> wrote in message
news:217B409C-EA7C-4403-8DD8-0951467F379A@microsoft.com...
> Thanks for you help. I checked and my firewall service in Vista is not
> started so I assume that can't be the problem. I agree, however, that it
> seems like a firewall problem. I also tried using debug mode and passive
> mode. I wasn't sure how to enable passive mode but I think I did it by
> sending the "PASV" command to the other server by using "Quote PASV"
> command.
> Unfortunately, It still hangs (see below) in passive mode.


That's because "quote pasv" is not enough to do passive mode. When you sent
that command, you received back an IP address and port (66,240,31,227,5,97)
that the server was listening on, and then you went ahead and tried your
transfer in active mode anyway (that's what the PORT command does - tell the
server that you've changed your mind and want to do active mode transfers
again).

You should try fetching another FTP client, that can be configured to use
passive mode for data transfers, and see if it works.

Alun.
~~~~
--
Texas Imperial Software | Web: http://www.wftpd.com/
23921 57th Ave SE | Blog: http://msmvps.com/blogs/alunj/
Woodinville WA 98072-8661 | WFTPD, WFTPD Pro are Windows FTP servers.
Fax/Voice +1(425)807-1787 | Try our FTP client software, WFTPD Explorer.

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vista FTP Service / FTP Application WebOrdy microsoft.public.windows.vista.general 2 07-08-2007 02:09
Vista IIS FTP - no, it's not an IE7 and FTP question! =?Utf-8?B?Um9nZXI=?= microsoft.public.windows.vista.installation setup 1 02-18-2007 04:50




All times are GMT +1. The time now is 06:54.




Driver Scanner - Free Scan Now

Vistaheads.com is part of the Heads Network. See also XPHeads.com , Win7Heads.com and Win8Heads.com.


Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.0 RC 2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120