


When you use a passive mode session, however, the data port does not always use port 20. During a typical active mode session, the command port uses port 21 and the data port uses port 20. Active and passive mode sessionsįTP uses a data port and a command port to transfer information between a client and a server. For more information about firewalls, read our How to Configure Your Firewall for cPanel & WHM Services documentation. If you use the nftables, firewalld, or iptables applications for your firewall, you must enable firewall settings for the passive ports manually. If you use the ConfigServer Security & Firewall (CSF) firewall plugin, the system also adds passive port ranges to your server’s firewall by default. In cPanel for FTP servers like PureFTP, follow the below steps.Ģ.In cPanel & WHM version 60 and later, the system enables passive ports 49152 through 65534 for Pure-FTPd servers and ProFTPD servers by default. In most of the cases “FTP cannot retrieve directory listing” error occurs when passive port range is not mentioned FTP server configuration. Click on Connection -> FTP -> Passive Mode: Select Fall Back to Active Mode.Click on Connection -> FTP -> Active Mode: Choose “Ask your operating system for the external IP address”.


In case you are still getting the error, disable your firewall then try once more! 2. Make the Encryption to “Only use plain FTP”. If the site or server you want to connect to isn’t already mentioned in site manager, add it.ī. Go to FileZilla, click on “File” menu and select “Site Manager”.Ģ. This error occurs when encryption is set to “Use explicit FTP over TLS if available” in FTP client settings.Ĭheck the steps below to fix the problem:ġ. Error : Failed to retrieve directory listing
