Windows – Can’t connect to local web server

networkingweb-serverwebsitewindows

I can't access web content (like a simple HTML file) on my Windows 7 Ultimate x64 machine, either locally or remotely. I tried connecting to IIS (running on port 80) and the built-in Visual Studio web server (running on port 23456) but for some reason, the request never makes it to the web server and both IE and Firefox timeout. The firewall and antivirus have been stopped. I tried accessing the web server using http://localhost, http://127.0.0.1 and http://192.168.1.109 and none work. The hosts file looks like this:

    127.0.0.1       localhost
#   ::1 

I tried commenting out both lines and un-commenting both lines. No difference.

So I assume something with the networking stack must be screwed up on this machine. Any advice on diagnosing/fixing this?

Best Answer

Are you sure the web server are running? Type the following commands in a command prompt:

netstat -an | find "80"
netstat -an | find "23456"

If the web servers are running, you should have a similar output:

C:\Documents and Settings\Benoit>netstat -an | find "80"
  TCP    0.0.0.0:80             0.0.0.0:0              LISTENING

By the way, if Visual Studio web server is running on port 23456, you must use the following URIs:


According to your output, it really seems a firewall is running on your computer. Have you tried to connect from another computer on your network?

Related Topic