Thursday, May 6, 2010

Getting FTP to work on Windows 2008 server

I installed the FTP server feature on a Windows 2008 server. However, when I tried to connect from an FTP client, I consistantly got an error suggesting that the directory could not be listed, even though authentication went through. I checked the Windows Firewall setting and found that "FTP Server" was indeed checked in the exceptions list. A quick google saved my day. You can configure the Windows Firewall to allow non-secure FTP traffic with these two command-line commands:

1) Open port 21 on the firewall
netsh advfirewall firewall add rule name="FTP (no SSL)" action=allow protocol=TCP dir=in localport=21
2) Activate firewall application filter for FTP (aka Stateful FTP) that will dynamically open ports for data connections
netsh advfirewall set global StatefulFtp enable

Kudos to this site:

No comments:

Post a Comment