Computer >> Computer tutorials >  >> Troubleshooting >> Windows Errors

How to Fix ‘Failed to retrieve Directory Listing’ Error on FileZilla

FileZilla is free software, it has two versions i.e. FileZilla Client and FileZilla Server. The Client has cross-platform support but the Server only supports Windows. This application is used to transfer files between computers on a network. However, quite recently, a lot of reports have been coming in where users experience the “Failed to Retrieve Directory Listing” error while trying to connect to the server.

How to Fix ‘Failed to retrieve Directory Listing’ Error on FileZilla

What Causes the “Failed to Retrieve Directory Listing” Error on FileZilla?

After receiving numerous reports from multiple users, we decided to investigate the issue and devised a set of solutions that eradicated it for most of our users. Also, we looked into the reasons due to which this issue is triggered and listed some of the most common ones below.

  • Windows Firewall: In most cases, the FileZilla server worked locally but not remotely. Whenever a connection attempt was made locally this error was triggered. This error is triggered because FileZilla’s connection was being blocked by the Windows Firewall. Even though the exception for a particular port might be added in the Firewall, it still uses a “Passive Mode” to send and receive files. This is done on random TCP ports. Therefore, these ports are blocked by the Firewall and this error is triggered.
  • Encryption: There are several types of connection encryptions that you can use while trying to connect to the server. Although some are more secure than the others they can often cause issues even with the legitimate connections by preventing the connection from being established.

Now that you have a basic understanding of the nature of the problem, we will move on towards the solutions. Make sure to implement these in the specific manner in which they are presented to avoid conflicts.

Solution 1: Creating a Firewall Rule

If the Firewall is blocking FileZilla from making contact with the internet, it will not work properly and the error will be triggered. Therefore, in this step, we will be first limiting the ports for FileZilla and then adding exceptions for them in the Firewall. To do that:

  1. Launch the “FileZilla Server” on the “Server” computer.
  2. Click on the “Edit” option and select “Settings” from the list.How to Fix ‘Failed to retrieve Directory Listing’ Error on FileZilla
  3. Click on the “Passive Mode Settings” option from the left pane and check the “Use Custom Port Range” option.
  4. Enter2100” in the first box and the second box.How to Fix ‘Failed to retrieve Directory Listing’ Error on FileZilla
  5. Click on “OK” to save your settings.
  6. Press the “Windows” + “I” buttons simultaneously to open settings.
  7. Click on “Update & Security” and selectWindows Security” in the left pane.How to Fix ‘Failed to retrieve Directory Listing’ Error on FileZilla
  8. Click on the “Firewall & Network Protection” option and select the “Advanced Settings” button.How to Fix ‘Failed to retrieve Directory Listing’ Error on FileZilla
  9. Leftclick on the “Inbound Rule” option and then rightclick on it again.
  10. Select “New Rule” from the list.How to Fix ‘Failed to retrieve Directory Listing’ Error on FileZilla
  11. Under the heading “What Type of Rule you want to create“, check the “Port” option and click on “Next”.How to Fix ‘Failed to retrieve Directory Listing’ Error on FileZilla
  12. Check the “TCP” option and check the “Specific Local Ports” option.How to Fix ‘Failed to retrieve Directory Listing’ Error on FileZilla
  13. Write in “21,2100” in the space and click on “Next”.
    Note: In place for 21 write the port that you selected while creating the server
  14. Check the “Allow Connection” option and click on “Next“.How to Fix ‘Failed to retrieve Directory Listing’ Error on FileZilla
  15. In the next screen, check “Private“, “Domain” and the “public” option.How to Fix ‘Failed to retrieve Directory Listing’ Error on FileZilla
  16. Click on “Next” and enter the name which you want for this rule.How to Fix ‘Failed to retrieve Directory Listing’ Error on FileZilla
  17. Click on “Finish” to add this rule.
  18. Repeat this same process for “Outgoing Rules” to add the same rule for it as well.
  19. When these rules have been added, check to see if the issue persists.

Solution 2: Changing Encryption

It is possible that the Encryption configurations might be causing the issue. Therefore, in this step, we will be changing the encryption for the connection. For that:

  1. OpenFileZilla Client” on the “Client” computer.
  2. Click on “File” and select “Site Manager“.How to Fix ‘Failed to retrieve Directory Listing’ Error on FileZilla
  3. If the server you want to connect to isn’t already in there selectNew Site“.
  4. Add the hostname, username, and password for the connection.
  5. Click on the “Logon Type” dropdown and select “Normal“.
  6. Click on the “Encryption” dropdown and selectOnly use Plain FTP“.How to Fix ‘Failed to retrieve Directory Listing’ Error on FileZilla
  7. Make the connection and check to see if the issue persists.

Solution 3: Changing FTP Configurations

In some cases, the FTP settings might not be configured properly due to which the error is being triggered. Therefore, in this step, we will be changing certain FTP configurations. In order to do that:

  1. OpenFileZilla Client” on the “Client” Computer.
  2. Click on “Edit” and select “Settings“.How to Fix ‘Failed to retrieve Directory Listing’ Error on FileZilla
  3. Click on “FTP” under “Connections” and check the “Active” option.How to Fix ‘Failed to retrieve Directory Listing’ Error on FileZilla
  4. Check “Allow Fallback to other transfer modes on Failure“.
  5. Click on “Active Mode” under the “FTP” heading and check the “Ask your operating system for External IP Address” option.How to Fix ‘Failed to retrieve Directory Listing’ Error on FileZilla
  6. Click on the “Passive Mode” option and check the “Fall Back to Active Mode” option.How to Fix ‘Failed to retrieve Directory Listing’ Error on FileZilla
  7. Click on “OK” to save your settings and check to see if the issue persists.

Solution 4: Altering Host Name

Sometimes, while making a connection to a specific host altering the hostname to initiate a certain protocol might fix the error. Therefore, in this step, we will be altering the hostname. For that:

  1. OpenFileZilla Client” on the “Client” computer.
  2. Click on the “Hostname” option.
  3. Enter the following before the actual hostname of the server
    sftp://
    How to Fix ‘Failed to retrieve Directory Listing’ Error on FileZilla
  4. Enter the rest of the details and check to see if the issue persists.