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