Windows Firewall is enabled on your server,
you will also need to adjust your firewall settings to allow FTP. The easiest
way to do this is by command line.
Run command prompt as administrator
Paste the commands below according to your
requirement
For
open port 21 on the firewall, type the following syntax
netsh advfirewall firewall add rule
name="FTP (non-SSL)" action=allow protocol=TCP dir=in localport=21
For
enable stateful FTP filtering that will dynamically open ports for data
connections, type the following syntax
netsh advfirewall set global StatefulFtp
enable
For
configure the firewall to allow the FTP service to listen on all ports that it
opens, type the following syntax
netsh advfirewall firewall add rule
name="FTP for IIS7" service=ftpsvc action=allow protocol=TCP dir=in
For
disable stateful FTP filtering so that Windows Firewall will not block FTP
traffic, type the following syntax
netsh advfirewall set global StatefulFtp
disable
If
Then also not work then do below from command prompt
mkdir “YourFTP Path”
ICACLS "Your FTP Root" /Grant
IUSR:R /T
netsh
int ipv4 set dynamicport tcp start=5000 num=5100
In IIS Manager, right-click on your server
name, and enter the following port range
5000-1000
5000-5100
You can mention custom dynamic port as per your requirement.