0

I have successfully setup my FTP on Windows Server 2012 R2 by following this TUTORIAL. I am able to see my files by logging in to ftp and after fully disabling Windows Firewall. But couldn't connect even if

  1. I have allowed ftp through firewall.
  2. I have used this tutorial for configuring data channel port.
  3. I have made sure that corresponding ports are allowed through FTP.

But as soon as I have enabled Windows Firewall, I am unable to connect. Any help would be appreciated. Thanks

ZZeyaNN
  • 538
  • 8
  • 13

2 Answers2

9

Restarting FTP Service

When install new FTP server or change FTP data channel port range --> need restart FTP service to apply. I try this way and it's work.

To restart FTP service go to Control Panel > System and Security > Administrative Tools and open Services. Locate Microsoft FTP Service and click Restart service.

TrungNT
  • 133
  • 1
  • 7
4

Apparently the default firewall rules don't work.Slucas Blog. I just added new rule for port 21 and everything worked like a charm.

ZZeyaNN
  • 538
  • 8
  • 13
  • If you follow the blog instructions and get `Set-Content : A positional parameter cannot be found that accepts argument 'unrestricted'`, use `sc.exe`, see [here](https://stackoverflow.com/a/33785483/21115). – davetapley Nov 05 '20 at 21:46