Error: Failed to retrieve directory listing

Come here to discuss FileZilla and FTP in general

Moderator: Project members

Post Reply
Message
Author
jwr0014
500 Command not understood
Posts: 2
Joined: 2022-04-04 16:26

Error: Failed to retrieve directory listing

#1 Post by jwr0014 » 2022-04-04 16:38

This is driving me crazy, I've googled so many times and the solution that comes up 90% of the time is to change to active transfer or to use plain FTP. I've done this a million times, still no dice. This is what my client is outputting except I've put asterisks over my servers IP:
Status: Connecting to **.***.***.***:*****...
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: TLS connection established.
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is current directory.
Command: TYPE I
Response: 200 Type set to I
Command: PORT 10,255,97,60,197,170
Response: 200 PORT command successful.
Command: MLSD
Response: 150 Starting data transfer.
Response: 425 Unable to build data connection: ETIMEDOUT - Connection attempt timed out
Error: Failed to retrieve directory listing

Please help, I got rid of the timeout hoping that would help and I think it did because I got the output above but I always get the failed to retrieve directory listing error. It's not my firewall or my port forwarding, I can connect if I'm on the local network using the local IP address or the public IP, I just can't connect on any other networks.
Attachments
Capture.PNG
Capture.PNG (21.73 KiB) Viewed 24526 times

User avatar
boco
Contributor
Posts: 26935
Joined: 2006-05-01 03:28
Location: Germany

Re: Error: Failed to retrieve directory listing

#2 Post by boco » 2022-04-04 22:41

Switch to Passive mode, it's recommended over Active for NAT/firewall scenarios. See the Passive mode part of Network Configuration.

If you must use Active, you need to configure the client and the client's network. See the Active mode part of Network Configuration.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

jwr0014
500 Command not understood
Posts: 2
Joined: 2022-04-04 16:26

Re: Error: Failed to retrieve directory listing

#3 Post by jwr0014 » 2022-04-11 20:27

After testing with just passive mode, this is what I get. Pretty much the same thing. Any other suggestions?
Attachments
FTP Fail.PNG
FTP Fail.PNG (20.57 KiB) Viewed 24460 times

iam_sysop
226 Transfer OK
Posts: 62
Joined: 2021-10-08 21:33

Re: Error: Failed to retrieve directory listing

#4 Post by iam_sysop » 2022-04-12 02:27

jwr0014 wrote:
2022-04-11 20:27
After testing with just passive mode, this is what I get. Pretty much the same thing. Any other suggestions?
Your firewall somewhere is not properly opening up the data ports.

Protocol transmits on one port, data moves on another - This behaves like a firewall issue either at the client or server side...

Per your notes, it works on local network - most local NATs don't need ports opened - because they're ALL behind the firewall. Not being able to FTP outside of your router means you have a firewall/NAT issue at the router blocking communications between you and the outside world (on the data port only)...

User avatar
boco
Contributor
Posts: 26935
Joined: 2006-05-01 03:28
Location: Germany

Re: Error: Failed to retrieve directory listing

#5 Post by boco » 2022-04-12 08:11

Please test the FTP server: https://ftptest.net
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

Post Reply