Ftp – How to setup an FTP server on Windows 7

ftpwindows 7

I'm having trouble getting an FTP server setup on Windows 7.

I've added the service using Control Panel -> Programs -> Turn Windows features on and off.

I can see the service has started in Control Panel -> Services.

But then when I fire up a Windows command-line window, cmd, I get Not connected.,

C:\Users\mattf>ftp localhost
ftp> ls
Not connected.
ftp> open localhost
ftp> ls
Not connected.
ftp> dir
Not connected.
ftp> quit

C:\Users\mattf>

And that's as far as I've got. I have no idea why this isn't working – could it be firewall settings?

Best Answer

I just replicated your results.

Contrary to Phoebus' comment, it appears you manage Windows 7 FTP sites with the same 7.5 management console as the web services.

Also, it appears as if Microsoft does not create an FTP site when the FTP service is created (as was done in the past).

After you've installed the FTP Service and IIS Management Console, perform the following steps.

  1. Run Administrative Tools | Internet Information Services (IIS) Manager
  2. Expand the local machine.
  3. Right-click Sites and Add FTP Site.
  4. Call it "Default FTP Site" with a path of "C:\inetpub\ftproot"; hit next
  5. Enable Start FTP site automatically, select Allow SSL; hit next
  6. Enable Anonymous Authentication; hit Finish

You should now be able to FTP to localhost. You may choose different options, but the options described above work for me and are very similar to the default options in IIS 6 FTP.

Note, you may also need to enable the FTP server in the firewall. For that use the following command.

netsh advfirewall firewall set rule group="FTP Server" new enable="yes"