CMD through a command line open ports in Windows Firewall

Using the netsh command.

details as follows

 

  netsh advfirewall firewall add rule name="mysql" dir=in protocol=tcp localport=3306 action=allow

Guess you like

Origin www.cnblogs.com/dreamdale/p/11888522.html