Fix for Filezilla Failing to Retrieve Directory Listing
I use Filezilla FTP client to manage files on many servers. I had a specific Filezilla client that refused to retrieve a directory listing. Other computers could connect to the same server just fine. Thusly I knew it was a client configuration problem.
I ended up with messages like this:
Response: 200 PORT command successful. Consider using PASV. Command: LIST Error: Connection timed out Error: Failed to retrieve directory listingI ran the Filezilla configuration wizard to diagnose the problem. The configuration wizard utility ran for a while reporting success until the very end. After timing out, I received the following messages:
Response: 200 PORT command successful LIST Response: 150 opening data connection Response: 503 Failure of data connection. Server sent invalid reply. Connection closed
Searching the Internet led to not so helpful posts such as "Please read the Network Configuration guide.". After analyzing the situation, it turns out the solution isn't so obvious. My Client had the default setting of Connection -> FTP -> Active Mode: Get External IP Address From This URL. Which pointed to http://ip.filezilla-project.org/ip.php . This is the source of the problem. If you go to that URL, you will probably get a result of 127.0.0.1. If the Filezilla client needs the external address, and is given 127.0.0.1, then there will be problems indeed!
If you have a similar problem with Filezilla, and the problem persists even when the Windows Firewall is disabled, here is what you need to do:
- Open Filezilla, go to Edit -> Settings
- Click on Connection -> FTP: Choose Active
- Click on Connection -> FTP -> Active Mode: Select "Ask your operating system for the external IP address"
- Click on Connection -> FTP -> Passive Mode: Choose Fall Back to Active Mode
- Press OK.
Try connecting to your FTP site once again. Works!
Update: In some cases, and for reasons unknown, Filezilla just won't work. I have found that coreFTP is a nice FTP program that is free Windows software which includes the client FTP features you need. Features like SFTP (SSH), SSL, TLS, IDN, browser integration, site to site transfers, FTP transfer resume, drag and drop support, file viewing & editing, firewall support, custom commands, FTP URL parsing, command line transfers, filters, and much, much more!
If Filezilla still does not work for you after you follow the steps above, then install coreFTP and it will work just fine.







Was having the same problem and was also fed up of the "Read the configuration faq"
Thanks a lot Dan.
Hey Presto, there you were. Thanks Dan
Status: Resolving IP-Address for www.addinall.net
Status: Connecting to 65.254.60.9:21...
Status: Connection established, waiting for welcome message...
Response: 220---------- Welcome to Pure-FTPd [TLS] ----------
Response: 220-You are user number 2 of 50 allowed.
Response: 220-Local time is now 15:15. Server port: 21.
Response: 220-This is a private system - No anonymous login
Response: 220 You will be disconnected after 15 minutes of inactivity.
Command: USER addinall
Response: 331 User addinall OK. Password required
Command: PASS ********
Response: 230-User addinall has group access to: addinall
Response: 230 OK. Current restricted directory is /
Command: SYST
Response: 215 UNIX Type: L8
Command: FEAT
Response: 211-Extensions supported:
Response: EPRT
Response: IDLE
Response: MDTM
Response: SIZE
Response: REST STREAM
Response: MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
Response: MLSD
Response: ESTP
Response: PASV
Response: EPSV
Response: SPSV
Response: ESTA
Response: AUTH TLS
Response: PBSZ
Response: PROT
Response: 211 End.
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is your current location
Command: TYPE I
Response: 200 TYPE is now 8-bit binary
Command: PASV
Response: 227 Entering Passive Mode (65,254,60,9,160,49)
Command: LIST
Error: Connection timed out
Error: Failed to retrieve directory listing
Status: Resolving IP-Address for www.addinall.net
Status: Connecting to 65.254.60.9:21...
Status: Connection established, waiting for welcome message...
Response: 220---------- Welcome to Pure-FTPd [TLS] ----------
Response: 220-You are user number 2 of 50 allowed.
Response: 220-Local time is now 15:23. Server port: 21.
Response: 220-This is a private system - No anonymous login
Response: 220 You will be disconnected after 15 minutes of inactivity.
Command: USER addinall
Response: 331 User addinall OK. Password required
Command: PASS ********
Response: 230-User addinall has group access to: addinall
Response: 230 OK. Current restricted directory is /
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is your current location
Command: TYPE I
Response: 200 TYPE is now 8-bit binary
Command: PASV
Response: 227 Entering Passive Mode (65,254,60,9,234,232)
Command: LIST
Error: Connection timed out
Error: Failed to retrieve directory listing
Status: Resolving IP-Address for www.addinall.net
Trace: ControlSocket.cpp(1003): CRealControlSocket::ContinueConnect(0p13a7fe0) m_pEngine=0p130d1c0 caller=0p1382d10
Status: Connecting to 65.254.60.9:21...
Status: Connection established, waiting for welcome message...
Trace: CFtpControlSocket::OnReceive()
Response: 220---------- Welcome to Pure-FTPd [TLS] ----------
Response: 220-You are user number 3 of 50 allowed.
Response: 220-Local time is now 15:29. Server port: 21.
Response: 220-This is a private system - No anonymous login
Response: 220 You will be disconnected after 15 minutes of inactivity.
Trace: CFtpControlSocket::SendNextCommand()
Command: USER addinall
Trace: CFtpControlSocket::OnReceive()
Response: 331 User addinall OK. Password required
Trace: CFtpControlSocket::SendNextCommand()
Command: PASS ********
Trace: CFtpControlSocket::OnReceive()
Response: 230-User addinall has group access to: addinall
Response: 230 OK. Current restricted directory is /
Status: Connected
Trace: CFtpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Status: Retrieving directory listing...
Trace: CFtpControlSocket::SendNextCommand()
Trace: CFtpControlSocket::ChangeDirSend()
Command: PWD
Trace: CFtpControlSocket::OnReceive()
Response: 257 "/" is your current location
Trace: CFtpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Trace: CFtpControlSocket::ParseSubcommandResult(0)
Trace: CFtpControlSocket::ListSubcommandResult()
Trace: CFtpControlSocket::SendNextCommand()
Trace: CFtpControlSocket::TransferSend()
Command: TYPE I
Trace: CFtpControlSocket::OnReceive()
Response: 200 TYPE is now 8-bit binary
Trace: CFtpControlSocket::TransferParseResponse()
Trace: CFtpControlSocket::SendNextCommand()
Trace: CFtpControlSocket::TransferSend()
Command: PASV
Trace: CFtpControlSocket::OnReceive()
Response: 227 Entering Passive Mode (65,254,60,9,159,9)
Trace: CFtpControlSocket::TransferParseResponse()
Trace: CFtpControlSocket::SendNextCommand()
Trace: CFtpControlSocket::TransferSend()
Command: LIST
Error: Connection timed out
Trace: CFtpControlSocket::ResetOperation(2114)
Trace: CControlSocket::ResetOperation(2114)
Trace: CFtpControlSocket::ResetOperation(2114)
Trace: CControlSocket::ResetOperation(2114)
Error: Failed to retrieve directory listing
You might also have to set your connection to Active. You probably have it set to passive, which, while recommended, some times does not work.
So go into your configuration options, set the connection to Active, and try again.
DW
it works!
It worked for me.
Status: Resolving IP-Address for ftp.svpa-architects.com
Status: Connecting to 71.32.179.178:21...
Status: Connection established, waiting for welcome message...
Response: 220-Microsoft FTP Service
Response: 220 This is svpa3
Command: USER svpa\07062
Response: 331 Password required for svpa\07062.
Command: PASS ******
Response: 230 User svpa\07062 logged in.
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/07062" is current directory.
Command: TYPE I
Response: 200 Type set to I.
Command: PORT 63,224,182,1,9,145
Response: 500 Invalid PORT Command.
Command: PASV
Response: 227 Entering Passive Mode (10,0,0,248,17,40).
Status: Server sent passive reply with unroutable address. Using server address instead.
Command: LIST
Response: 425 Can't open data connection.
Error: Failed to retrieve directory listing
Ah well. Back to Google.
Then I looked at the settings on the server side.
Under "Passive mode settings" the "Retrieve external IP address from:" option was selected.
I selected "Default" instead and everything worked.
Many thanks
Command: PORT 10,0,0,101,235,118
Response: 501 Server cannot accept argument.
Command: PASV
Response: 227 Entering Passive Mode (22,11,55,33,195,182).
Command: LIST
Response: 150 Opening BINARY mode data connection.
Error: Connection timed out
Error: Failed to retrieve directory listing
it was switching to passive mode and trying port:
256*195+182=50102
I didn't see how to configure in filezilla what ports it used in the switch over. Seemed to use the same one each time so just opened ports 49152 - 50300 in the firewall.
Worked! got the directory listing.
Tried the suggestion here, still no luck
Only when I turn off my windows firewall, does it work
It come up to LIST, then it times out. No matter which FTP server I connect to.
I have Filezilla in my exclusion list on my FW, but it still does not work.
Anybody have a suggestion to unblock FZ completely on the FW?
Status: Resolving address of ftp.********.info
Status: Connecting to 64.22.96.22:21...
Status: Connection established, waiting for welcome message...
Response: 220---------- Welcome to Pure-FTPd [TLS] ----------
Response: 220-You are user number 3 of 50 allowed.
Response: 220-Local time is now 20:48. Server port: 21.
Response: 220-IPv6 connections are also welcome on this server.
Response: 220 You will be disconnected after 15 minutes of inactivity.
Command: USER ***@********.info
Response: 331 User ***@********.info OK. Password required
Command: PASS ************
Response: 230-User ***@********.info has group access to: m**o**j*
Response: 230-OK. Current restricted directory is /
Response: 230 0 Kbytes used (0%) - authorized: 10240 Kb
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is your current location
Command: TYPE I
Response: 200 TYPE is now 8-bit binary
Command: PASV
Response: 227 Entering Passive Mode (64,22,96,22,123,15)
Command: LIST
Error: Connection timed out
Error: Failed to retrieve directory listing
i hav replaced the user name and host but *.
I would really appreciate some help. I am totally new to this and i need to use ftp feature for a project.
Thank u for any suggestions.
Error: Connection timed out
Error: Failed to retrieve directory listing
I still face the same issue after configuring your things with Filezilla FTP.
1, go to http://www.hotspotbot.com and down load Hot Spot Bot. Basically, the VPN will help you bypass firewall settings that could be on LAN or WAN routers. This solution worked but it was very slow. So,
2. Enable SFTP on the server and conect via SFTP. You may have to contact your hosting company or server administrator. In my case, I actually had to email a photo of my picture ID, but it was well worth it. It is fast, secure and reliable.
Same problem (we use FileZilla Server on the web server), but thanks to your simple solution, all is going.
I tried probly all the alternatives possible, including the one explained here, didnt work for version 3.x.
Once I reconnected, that directory worked, but then the next one wouldn't work.
I did what you said, and it works again now... thanks. Strange that it worked fine about 3 months or so ago.
000160) 2/18/2009 10:51:03 AM - (not logged in) (211.24.68.57)> Connected, sending welcome message...
(000160) 2/18/2009 10:51:03 AM - (not logged in) (211.24.68.57)> 220 WELCOME TO WPM TECHNOLOGY SDN BHD FTP SERVICES
(000160) 2/18/2009 10:51:13 AM - (not logged in) (211.24.68.57)> USER admin
(000160) 2/18/2009 10:51:13 AM - (not logged in) (211.24.68.57)> 331 Password required for admin
(000160) 2/18/2009 10:51:14 AM - (not logged in) (211.24.68.57)> PASS ******
(000160) 2/18/2009 10:51:14 AM - admin (211.24.68.57)> 230 Logged on
(000160) 2/18/2009 10:51:15 AM - admin (211.24.68.57)> SYST
(000160) 2/18/2009 10:51:15 AM - admin (211.24.68.57)> 215 UNIX emulated by FileZilla
(000160) 2/18/2009 10:51:17 AM - admin (211.24.68.57)> FEAT
(000160) 2/18/2009 10:51:17 AM - admin (211.24.68.57)> 211-Features:
(000160) 2/18/2009 10:51:17 AM - admin (211.24.68.57)> MDTM
(000160) 2/18/2009 10:51:17 AM - admin (211.24.68.57)> REST STREAM
(000160) 2/18/2009 10:51:17 AM - admin (211.24.68.57)> SIZE
(000160) 2/18/2009 10:51:17 AM - admin (211.24.68.57)> MLST type*;size*;modify*;
(000160) 2/18/2009 10:51:17 AM - admin (211.24.68.57)> MLSD
(000160) 2/18/2009 10:51:17 AM - admin (211.24.68.57)> UTF8
(000160) 2/18/2009 10:51:17 AM - admin (211.24.68.57)> CLNT
(000160) 2/18/2009 10:51:17 AM - admin (211.24.68.57)> MFMT
(000160) 2/18/2009 10:51:17 AM - admin (211.24.68.57)> 211 End
(000160) 2/18/2009 10:51:22 AM - admin (211.24.68.57)> PWD
(000160) 2/18/2009 10:51:22 AM - admin (211.24.68.57)> 257 "/" is current directory.
(000160) 2/18/2009 10:51:23 AM - admin (211.24.68.57)> TYPE I
(000160) 2/18/2009 10:51:23 AM - admin (211.24.68.57)> 200 Type set to I
(000160) 2/18/2009 10:51:23 AM - admin (211.24.68.57)> PASV
(000160) 2/18/2009 10:51:23 AM - admin (211.24.68.57)> 227 Entering Passive Mode (60,54,160,29,12,185)
(000160) 2/18/2009 10:51:23 AM - admin (211.24.68.57)> disconnected.
I struggled with for hours...
but the transfer rate is very slow like 10kbps can i increase it ?? and there is no resume support of transfer...
Go to oldversion.com and get ver 3.0.9.1 and do as the post says
and TADA! You'll be smilin'
<li><a title="FileZilla 3.0.91 download" href="download_FileZilla_3.0.91.html">FileZilla 3.0.91</a> (2.97 MB)</li>
Goodluck.
Just updated and issue was resolved.
I have to post a video as my final project YESTERDAY and kept hitting road blocks like this one. Thanks for being so direct about a solution!!
What's even funnier is that I have the exact problem with CoreFTP & Filezilla!
back in business in minutes.
This worked out great.
This was bugging since last over a month.
Thanks
Thanks guys!