cmd防火墙开启端口netsh

 

netsh advfirewall firewall add rule name="Enable appname 37982" dir=in action=allow protocol=TCP localport=37982

netsh firewall add portopening TCP 37982 "Enable appname 37982"

参考:https://blog.csdn.net/weixin_30367169/article/details/95178707

posted on 2022-05-13 10:02  momingliu11  阅读(262)  评论(0编辑  收藏  举报