Sunday 31 March 2013

Error : 425 Can't Open Data Connection

When trying to ftp to a server using Internet browser.

Assuming you are using:


  • Windows Server 2008
  • IIS 6 (By default)
Problems:

When connecting to a FTP server using Internet Browser, FTP passive mode is being used.


Usually it is due to the firewall.


Solution:

Assuming you are using Windows Firewall in Windows Server 2008.

By default setting, all outbound ports are opened.


To define a range of port for FTP passive mode.
===============================================
cscript.exe adsutil.vbs set /MSFTPSVC/PassivePortRange "60000-60999"
===============================================

Open the range of port in Windows Firewall (without having to key in one by one)
==========================================================
FOR /L %I IN (60000,1,60999) DO netsh firewall add portopening TCP %I "Passive FTP"%I
==========================================================

No comments:

Post a Comment