Can't FTP (anymore) into UNIX server... "Retrieve of folder listing failed (0)"

Posted on 2005-03-07
Medium Priority
Last Modified: 2013-12-23
I can't access my client's server anymore with FTP and I need your guys help to try and track down the problem.

I'm using WS_FTP to connect (worked before) to an ev1servers (formerly Rackshack) "virtual site"

Address: ftp.theoryi.com
ID: test123
PW: test123

It logins in successfully, when it tries to view the folder contents, I get a "Retrieve of folder listing failed (0)".

When I use Windows's "FTP" command, I get logged in correctly but when I do a "ls" command, I get a "Connection closed by host".

The strange thing is that there is another site that I have a "virtual site" with them and I don't get an errors with that one

Could you guys try it out and see if it works on your end?  Ev1servers was able to make a connection on their end, so I need to know whether it is something on my end.  I'm running Alltel DSL through a wireless network and using Windows XP Home.

Question by:kirkhilles
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
LVL 13

Accepted Solution

gripe earned 1000 total points
ID: 13478967
It sounds like you need to enable passive mode FTP. When you do an ls command the FTP server attempts to make a connection back to an arbitrary port on your host and pass the list that way. Often firewalls/NAT setups get in the way of this. With passive, all of the connections are initiated from your own machine. I'm not sure if windows CLI ftp supports PASV (I'm pretty sure it doesn't) but WS_FTP definitely. It's likely under the proxy configuration. 'Enable PASV' or 'Enable Passive FTP'

Author Comment

ID: 13479351
I've tried it on WS_FTP with Passive mode turned on and I still can't connect.  Could you give it a try on your machine and let me know if its something on my end or something on the host's end?

connecting to
Connected to port 21
220 ProFTPD 1.2.5 Server (ProFTPD) []
USER test123
331 Password required for test123.
PASS (hidden)
230 User test123 logged in.
CWD /web
250 CWD command successful.
257 "/web" is current directory.
215 UNIX Type: L8
Host type (S): UNIX (standard)
227 Entering Passive Mode (216,40,242,25,15,124).
connecting to
- -
connecting to
! Connection failed - connection timed out
! connect: error 0
PORT 192,168,1,101,6,128

! Receive error: connection reset

! Failed "port":
! Retrieve of folder listing failed (0)
LVL 21

Assisted Solution

tfewster earned 1000 total points
ID: 13481675
I was able to connect to your client from home (WinXP Home command line ftp/ADSL router/ZoneAlarm personal firewall) no problem.
Connected to
220 ProFTPD 1.2.5 Server (ProFTPD) []
User ( test123
331 Password required for test123.
230 User test123 logged in.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
226 Transfer complete.
ftp: 5 bytes received in 0.00Seconds 5000.00Kbytes/sec.
ftp> pasv
Invalid command.
ftp> quit

From your output:
> 227 Entering Passive Mode (216,40,242,25,15,124).
> connecting to

With Passive mode, the server says "I"ll be listening out on _this_ port for an incoming data connection" (instead of initiating a data connection from Port 20 on the server);  So your local firewall needs to allow your ftp client to connect out using that port (3964 in this case) and the host-end firewall has to allow an incoming connection on 3964.
See http://slacksite.com/other/ftp.html for a good explanation of the connection method(s) and a discussion of Active v. Passive ftp.
WordPress Tutorial 3: Plugins, Themes, and Widgets

The three most common changes you will make to your website involve the look (themes), the functionality (plugins), and modular elements (widgets).

In this article we will briefly define each again, and give you directions on how to install them.


Author Comment

ID: 13482566
I disabled the Windows XP firewall and don't have another firewall installed.

What I can I do to try to resolve this? Is it likely Alltel that has blocked a port? Is there a way to test whether Windows is somehow blocking it (I tried it on 2 systems and neither worked, though)?


Author Comment

ID: 13483072
There's a twist....

Okay, I've tracked down the issue.  It works fine when I "dial up" directly with my DSL, but *NOT* when I connect up through my wireless router (Linksys wireless router with signal amplifier) through the wireless connection or by connection up directly to the router (it has a 4 port router built in).

Any ideas on why (or how to change it) the wireless router would do this?


Author Comment

ID: 13483393
Somehow I fixed it (I had installed the Alltel software, maybe it changed a setting), but thanks everyone for the help

Featured Post

Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
Make the most of your online learning experience.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question