Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Viewing my IIS hosted site on other machines on my network

At home I have a simple network setup containing 2 machines.

On one machine i have a site hosted with IIS7. Rather than the standard localhost/index.htm address I have added an entry in the HOSTS file pointing the local IP (127.0.0.1) to this domain - www.mysite.dev.

I can access the site with www.mysite.dev with no problem.

what I would like to do is be able to view this site from my other machine on the network.

Initially I assumed this could be done with a URL like so MACHINE-NAME/www.mysite.dev, but the connection always times out. But I can ping MACHINE-NAME without problems.

For testing purposes I have disabled the windows firewall on both machines but to no joy.

Like a typical web developer, my hardware/network skills are pretty poor.

Can anyone see where I'm going wrong?

like image 646
Truegilly Avatar asked Feb 02 '10 12:02

Truegilly


People also ask

How do I expose an IIS website outside the domain?

Go to Start → Administrative Tools → Internet Information Services (IIS) Manager. In the Connections pane of IIS, expand the Sites and select the website which you want to access via IP address. Click on the Bindings link and you will see current bindings of that website. Click on Add button to add a new binding.


1 Answers

As others said your Firewall needs to be configured to accept incoming calls on TCP Port 80.

in win 7+ (easy wizardry way)

  1. go to windows firewall with advance security
  2. Inbound Rules -> Action -> New Rule
  3. select Predefined radio button and then select the last item - World Wide Web Services(HTTP)
  4. click next and leave the next steps as they are (allow the connection)

  • Because outbound traffic(from server to outside world) is allowed by default .it means for example http responses that web server is sending back to outside users and requests

  • But inbound traffic (originating from outside world to the server) is blocked by default like the user web requests originating from their browser which cannot reach the web server by default and you must open it.

You can also take a closer look at inbound and outbound rules at this page

like image 110
Iman Avatar answered Sep 21 '22 00:09

Iman