4

When I'm trying to connect to my iis with localhost, everything works fine. When I'm trying to connect with the name of my computer instead of localhost, it doesn't work.

I've found that turning off windows firewall resolves the problem, but I would like to turn on Windows Firewall. So, which program or port should be allowed through the Windows Firewall to make it work?

1
  • check your firewall logs
    – Pentium10
    Jan 29, 2010 at 9:46

6 Answers 6

9

If you ping to the name of your computer which ip address do you see in the results? Is that the ip address of your network connection? If that is the case, then you probably have to open up port 80 on your windows firewall. (I assume the site(s) on your IIS are running on port 80.) The firewall has to allow incoming traffic on port 80.

0
1

Windows Firewall can not get out to your DNS to resolve your computer name back to 127.0.0.1

You can also put the computer name in the c:\windows\system32\drivers\etc\host file along with the 127.0.0.1 address.

2
  • I've just installed Windows7. In Vista I never had to edit the host file, so there must be another way.
    – Lieven Cardoen
    Jan 29, 2010 at 9:51
  • Windows7 has incomming and outgoing firewall, so you outgoing request might be blocked. Jan 29, 2010 at 10:01
0

Very old post, I know. But for the sake of history and knowledge; Chances are you are using a proxy, in this case you need to add exception for your computer name in the your browser.

1
  • Helped me. Automatic proxy settings caused the problem in my case, though that is not what topic starter asked. May 19, 2017 at 7:22
0
  1. open notepad
  2. copy this below line:

    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters]
    
    "NodeType"=-
    "DhcpNodeType"=-
    
  3. save as "NETFIX.REG"

  4. paste to your desktop.
  5. double click.
  6. restart.
1
  • 1
    You going to explain what this does, or just expect people to copy and paste random code into their computers?
    – endolith
    Dec 19, 2020 at 1:47
0

I was using a proxy and getting the same error in my Windows machine, until I did the following:

  • Opened Internet Explorer
  • Opened Internet Options -> Connections (tab) -> LAN Settings
  • Check the "Bypass proxy server for local addresses" checkbox

Reloaded the local website with the computer name in the url, and voila! Success!

0

I observed this problem - the PC's IP address not getting resolved in a web browser, but the "localhost" based URL does get resolved - if you have the firewall on your PC invoked (via the AVG Antivirus UI, for example).

When I turned off the firewall in AVG, the IP address of the PC was getting resolved in the web browser.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .