How to enable “World Wide Services (HTTP)” in the firewall using command line?

丶灬走出姿态 提交于 2019-11-30 17:02:55

I had same problem when i used russian version of MS Windows 7 Pro.

This issue was solved when i check "World Wide Web Services (HTTP)" in list of services. For my russian version of Windows it was named "службы Интернета (HTTP)"

So this command line works fine:

>> netsh advfirewall firewall set rule name="службы Интернета  (HTTP)" new enable=yes

For Windows 7: Type firewall.cpl at run (Win + R) and then on the left panel of the opened window go to Advanced settings then in Inbound Rules there will be a list of rules, in these find World Wide Web Services (HTTP Traffic-In) and enable that one if you also interested in HTTPS then also enable World Wide Web Services (HTTPS Traffic-In).

Jamie

name needs to be rule group as below:

>> netsh advfirewall firewall set rule group="World Wide Web Services (HTTP)" new enable=yes

Similar to Sohail xIN3N and contrary to Jamie above but the following is what finally worked for me:

netsh advfirewall firewall set rule name="World Wide Web Services (HTTP Traffic-In)" new enable=yes

System details:

  • Win7 x64
  • Windows Firewall with Advanced Security Version: 6.1.7601.17514
  • IIS 7

To host your own website on your PC. ensure you have forwarded the traffic on port 80 from your router to your local PC (port forwarding). And ensure the firewall is enabled for the IIS or whichever web server you choose to use.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!