Enable passive ftp mode in Internet Explorer

Internet Explorer has an option to enable passive FTP mode. The active FTP connection is created with the following steps:

  1. FTP server listens for command connections on port 21
  2. FTP client creates a command connection from port (N > 1024) to the FTP Server port 21
  3. FTP client listens for a data connections on port (N+1)
  4. FTP server creates a data connection from port 20 to the port (N+1)

This will not work if the FTP client is behind a proxy/firewall/router, as it will deny the connection attempt from the FTP server. The passive FTP connection (PASV) is created with the following steps:

  1. FTP server listens for command connections on port 21
  2. FTP client creates a command connection from port (N > 1024) to the FTP server port 21
  3. FTP server starts listening for a data connection on a random port (P)
  4. FTP server sends a PORT P command back to the client with the data connection port
  5. FTP client creates a data connection from port (N > 1024) to the FTP server port P

If able to connect to the FTP server, but cannot receive directory listing and getting the error not able to access folder, then it is a good sign that passive mode is required.

To enable passive FTP open Control Panel -> Internet Options -> Advanced -> “Use Passive FTP for compatibility with some firewalls and DSL modems”

[HKEY_CURRENT_USER \Software \Microsoft \Ftp]
Use PASV = “yes”

Note there is another Advanced option “Enable Folder View for FTP sites” (Sometimes seen as “Use Web Based FTP”). If this option is enabled, then it will ignore the Passive FTP setting and always use Active FTP, but enables one to upload files to the FTP if having the right permissions.

[HKEY_CURRENT_USER \Software \Microsoft \Ftp]
Use Web Based FTP = “yes”

Note some FTP Servers (Like ftp.microsoft.com) doesn’t respond back when a client connects passively. Instead one gets the error “425 Can’t open data connection”.

Related Use IE as a FTP client

More info MS KB217888
More info MS KB309816
More info MS KB323446

Credits www.jsifaq.com