Hi ,
Please use the following command:
netsh advfirewall firewall add rule name="FTP1" dir=in action=allow protocol=TCP localport=20 remoteip=192.168.1.1-192.168.1.100,157.60.0.1,172.16.0.0/16
As the picture below:
Best Regards,
Candy
--------------------------------------------------------------
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.