How to view the IIS hosted sites on other machines on the network

iis-7

At home I have a simple network setup conatining 2 machines and 1 belkin router.

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.

Ahat 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 techy/network skills are pretty poor.

Can anyone see where I'm going wrong ??

Best Answer

On the Web Server, make sure you've created Web Sites in IIS and that they have different host headers (click on Advanced and you'll see where you can add them). For site #1, put mysite1.com, for site #2, put mysite2.com or whatever.

Now on your workstation, edit your hosts file (C:\WINDOWS\system32\drivers\etc\hosts) and add your web sites and IP address pairs like such:

192.168.2.3       mysite1.com
192.168.2.3       mysite2.com