Troubleshooting

FileZilla could not retrieve the directory listing

Login succeeded and the file list did not. On FTP and FTPS, separate a failed data connection from a 550 reply before you change firewall settings.

  • Reviewed October 21, 2026
  • Educational reference
  • FileZilla Client 3.71.x context

“Failed to retrieve directory listing” is the FileZilla sentence that appears when the client could talk to the server and still could not obtain a file list. On FTP and FTPS, believe the structure of the protocol before you believe a guess about passwords. If the log already shows a successful login, the password was accepted.

The FileZilla project’s client FAQ puts “I can’t list the contents of any directory” with firewall and router configuration, and points to the network configuration guide. That is the right first suspicion for a failed data connection. It is not the only listing failure. A 550 reply to LIST or MLSD, with no second connection attempted, means the server refused the command: permissions, a missing directory, or a path this account cannot read. That is a protocol reply, not ECONNREFUSED. Changing passive mode will not grant permission.

Login succeeds on the FTP control connection, then the data connection fails, so the remote pane stays empty.
Two connections. The symptom on this page is a failure of the second one.

Prerequisites

  • A log that shows a successful login, then a listing error.
  • The protocol is FTP or FTPS. If it is SFTP, skip the PASV steps.
  • You can ask the server administrator to inspect the passive port range if the client is already correct.
  • You have not just changed five settings. If you have, put them back so this test means something.

A remote pane that says you are not connected is a different problem. Go back to connection refused or timeout.

Read the listing attempt

  1. Scroll to the listing failure. If the reply is 550 and the log never tries to open a second connection, stop here. The server refused the listing command. If you do see PASV or PORT, read the reply and the error that follows. 425 Can't open data connection is the classic server reply for that second socket. A timeout or “connection refused” on the data port is the client’s report of the same moment. It is not the same event as a refusal of the first connection on port 21 or 22.

  2. Note the address and port in the PASV reply if it is printed. Calculate a port from the form the project uses: the last two numbers p1,p2 mean p1 × 256 + p2. Their example 12,34 is port 3106. You do not need to connect there by hand. You need to see whether the address is a public one the internet can reach.

  3. If the address is private (for example 10.x, 192.168.x, or 172.16.x through 172.31.x) and you are at home, the server gave you an address that only works on its own LAN. Stop editing the client. Tell the administrator that passive mode is advertising an internal address. The network guide explains why a server behind NAT must know its external address.

  4. If the address is public and the data connection times out, the passive ports are filtered. The administrator must allow the range they configured. Your client, in passive mode, needs permission to make outbound connections to those ports. A personal firewall that allows only port 21 will fail here. Allow FileZilla outbound, then retry once.

  5. If the log shows PORT instead, the client is in active mode and the server cannot call back. Switch this site to passive. In Site Manager, open Transfer Settings and choose passive mode for this host, or leave the default if the default is already passive and something else forced active. Retest.

  6. If the failure mentions TLS and the data connection, the control channel is encrypted and the data channel did not resume TLS the way the server requires. That is a server policy as often as a client bug. Capture the line and send it to the administrator. Do not “fix” it by switching the site to plain FTP on a network you do not trust.

The network configuration wizard under the Edit menu can test whether this computer can use passive or active mode. Use it as one test, not as a stack of changes. The connection settings guide explains the active-mode IP and port range for the rare case where the server only supports active mode.

Expected result

The remote pane fills with names. The log shows the listing command and a successful completion, not a 425. You can open a subdirectory. Uploads are a separate test. A listed directory that you cannot write to is transfer failed, and it is progress.

If the administrator fixes the passive range, your client settings can stay on the defaults. That is the outcome you want. A laptop full of special firewall rules will break on the next network.

Common problems

It lists once and fails when another transfer is running. The server allows a small number of connections. Lower simultaneous transfers to one. The queue guide shows where.

It fails only on FTPS, while a temporary plain FTP test works. Routers that rewrite FTP commands cannot see inside TLS. The network guide calls that out: a helper that rewrites PORT or PASV breaks as soon as the session is encrypted. The durable fix is passive mode with a correctly advertised public address, not a cleartext exception.

SFTP lists nothing and the error is not PASV. Wrong remote directory, a permissions problem on the home directory, or an SSH subsystem error. Set the default remote directory only if you know the path. Forcing FTP passive settings will not create an SFTP list.

The wizard says your network cannot use passive mode. Take that result seriously if you are on a restrictive network, and retest from another network before you rebuild the server around one café firewall.

What to send the host

Send the login-success line, the PASV or PORT line, the address and port, and the final error. Say whether the client is in passive mode. Ask them to confirm the external IP and the passive range. You do not need to send your password. You already logged in.

If you do not administer the server, this is as far as the client can go. Repeated local experiments will not open a port on someone else’s firewall.

Security considerations

A temporary plain-FTP test to compare behavior exposes the password. Do it only on a network you trust, and only if the account is a disposable test account. Prefer to diagnose from the FTPS log.

Do not open an inbound port range on your router unless you have switched to active mode for a reason written down in the active and passive guide. Listing failures are usually fixed on the server’s passive side.

An empty listing is not proof the directory is empty. Do not upload a new site over a folder you have not seen. Wait until the list succeeds, then look.

Frequently asked questions

If I am logged in, why is the remote pane empty?

FTP authentication uses the control connection. The list arrives on a separate data connection. The second one can fail while the first stays up.

Does this happen on SFTP?

Not in the FTP way. SFTP does not send PASV or PORT. If an SFTP session says the listing failed, read the SSH error. Do not switch that site to passive mode. Passive mode is an FTP setting.

The log mentions a private IP such as 192.168.0.10. Is that my router?

It is an address the server sent in the PASV reply. If that address is private and you are not on the server’s LAN, the server is misconfigured. The administrator has to advertise the public address.

Related tutorials

Sources checked for this guide

Labels in FileZilla can move between releases. If a menu name in your copy differs, follow the message log and the closest matching command rather than forcing an older click path.