Search code examples
network-programmingwindows-8ipiis-7.5

IIS external access by IP address


Can's seem to get this to work. Tried various combinations in Site Bindings. I can view default web page using the internal IP address as well as machine name from any computer on my network, but when it comes to accessing via public IP, which I got from whatismyip.com, browser keeps on waiting and waiting and eventually craps out..

Also, I've disabled Firewall (temporarily), but no luck. I've never done this kind of setup before so, I'm struggling a bit.

My ISP doesn't block traffic on port 80.

All entries in bindings screenshot represent various combinations I've tried either all together or separately..

enter image description here

Cheers!


Solution

  • Here are some thoughts I have on configuring the resources on your network.

    Configuration Notes

    It looks like you have a router, so it is your router that is bound to the external IP, not your computer. In that case your computer does not have the external IP (75.75.75.75). It only has the internal IP (10.0.0.6). You should set up your router to forward port 80 to your computer's internal IP address. You should bind IIS to the internal IP as well.

    I should note that given your screen shots above, that you are close to already doing this. The only thing I would remove from your configuration above is the IIS binding to the external IP (75.75.75.75).

    Testing

    When testing your site, a potential issue is with the router itself. Generally a router will not let an internal machine access an internal resource (e.g. IIS) via an external IP. So for example, if you try to browse from inside your network to 75.75.75.75, the router will not let it happen. That may be why you are seeing the browser hang. What you should do to test the web site is to access the external IP from outside of your network. Have a friend or relative (outside your network) try to connect to the external IP and see if it works.

    So how should you access the site from inside your network? Use the internal address only (10.0.0.6).