windows系统访问某个网址无法打开,没有找到一个可以查看防火墙端口的命令?
使用了命令:
netsh advfirewall show allprofile state
netsh firewall set opmode mode=disable
netsh firewall set opmode mode=enable
netsh advfirewall set allprofiles state off
rem Open TCP Port 80 inbound and outbound
netsh advfirewall firewall add rule name="Zoo TCP Port 80" dir=in action=allow protocol=TCP localport=80
netsh advfirewall firewall add rule name="Zoo TCP Port 80" dir=out action=allow protocol=TCP localport=80
netsh firewall show allowedprogram
WIN系统直接去 防火墙设置那里不是更直接吗。。。而且,默认不会禁止出去的啊,
所以,不能访问某个地址,不一定是你机器上的防火墙问题啊,而且,这个去防火墙设置,也可以查到。
网址无法打开 网址中带有具体的端口吗 比如x.x.x.x:1000/tplus/view/portal/portal.html 这里使用的就是1000端口
1、可以通过netstat -ano |findstr “1000” 看看对应1000端口连接是否建立 建立会有established 如果没建立 关闭微软防火墙或者防火墙单独放通这个端口 看看能不能访问
2、ping 网址的 比如 网址http://www.baidu.com/ ping http://www.baidu.xn--comping-z33ls644auu5a/ 如果ping不通是无法访问的 在对端没有禁ping的情况下 就需要排查对端网址问题