Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

Unable connect to FTP: Failed to retrieve directory listing

 
debugfirewallhostinghosting providerip

Symptoms

  • FTP is not accessible with the error below:

    Error: Connection timed out after 20 seconds of inactivity
    Error: Failed to retrieve directory listing

  • There are several external IP addresses with assigned to the external IP addresses.

  • When connection is established from the server with the debug mode in Filezilla, the following records appear:

    Response: 227 Entering Passive Mode (203,0,113,2,192,7).
    Trace: CFtpRawTransferOpData::ParseResponse() in state 2
    Trace: CControlSocket::SendNextCommand()
    Trace: CFtpRawTransferOpData::Send() in state 4
    Trace: Binding data connection source IP to control connection source IP 192.0.2.2
    Command: LIST
    Trace: CTlsSocketImpl::OnRead()
    Trace: CFtpControlSocket::OnReceive()
    Response: 150 Opening BINARY mode data connection.
    Trace: CFtpRawTransferOpData::ParseResponse() in state 4
    Trace: CControlSocket::SendNextCommand()
    Trace: CFtpRawTransferOpData::Send() in state 5
    Error: Connection timed out after 20 seconds of inactivity
    Trace: CRealControlSocket::DoClose(2050)
    Trace: CControlSocket::DoClose(2050)
    Trace: CFtpControlSocket::ResetOperation(2114)
    Trace: CControlSocket::ResetOperation(2114)
    Trace: CFtpRawTransferOpData::Reset(2114) in state 5
    Trace: CFtpControlSocket::ResetOperation(2114)
    Trace: CControlSocket::ResetOperation(2114)
    Trace: CFtpListOpData::Reset(2114) in state 3
    Error: Failed to retrieve directory listing

    Whereas, IP address 203.0.113.2 is bound with 192.0.2.3 internal IP in IIS > Sites > 192.0.2.3 > FTP Firewall Support > external IP address of Firewall.

  • When the external IP address of Firewall is set to none, connection from the server over internal IP address is established fine.

Cause

Misconfigured routing/external Firewall settings.

Resolution

Contact your Hosting Provider in order to check NAT routing/filtering on the server.

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

Securing the WordPress Frontier with WP Guardian

Read More »

Introducing WP Guardian Vulnerability Protection: Now available for WP Toolkit

Read More »

Debugging in WordPress Explained

Read More »
Knowledge Base

How to use DNS with a Plesk server

Read More »

Unable to start Plesk migration: Migrator cannot connect to source RPC agent

Read More »

Unable to install certificate for domain in Plesk: SSL/TLS Certificates option is missing

Read More »

Various actions fail in Plesk: Unable to find service node for ip address with id=XX

Read More »

Hosting Wiki

  • Server Redundancy
  • Bare Metal Server
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • JavaScript
  • Hosting Control Panel
  • Plesk
  • Web Server
  • DNS Server
  • IPv6
  • IPv4
  • SIP
  • UDP/IP
  • Firewall
  • Colocation Hosting
  • Reseller Hosting
  • Cloud Hosting
  • VPS Hosting
  • Dedicated Hosting
  • Shared Hosting
  • Free Hosting
  • Managed Hosting
  • TCP/IP
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family