Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have setup few websites on IIS 7.5.

All are working fine.

I have set binding for all sites like
1. http 80 unassigned (
2. http 80 unassigned (
3. http 80 unassigned (http://localhost/)

Now if I try 1 and 2 I get router page, because I am on same network as my server. (that's ok) From outside network its working fine.

To view website I use http://server-name/ and it works because of binding no. 3.

Now 3rd binding i.e. localhost can only be set on one website on IIS.

I need that I will be able to access all my sites from local. Maybe Like:
http:// server-name/site2

Please let me know how can I do this in one or the other way?

share|improve this question
up vote 1 down vote accepted

I know of three ways to do this:

  1. Modify your local hosts file. Modify your hosts file (in c:\windows\system32\drivers\etc\hosts) to put '' on the internal IP address.
  2. Use split DNS. Change the internal DNS server to serve up on an internal address instead of the external address.
  3. Use a separate domain. Set up new sites on new names ( or for instance) that you then enter into your internal DNS using the internal IP address.

All of these will allow you to use name-based virtual hosts from inside your network.

share|improve this answer
I don't understand, how to do any of these? Can you get me help link to do this? – Charandeep Singh Jun 5 '11 at 13:05
@CharandeepSingh Then #1 is probably your best bet. The file has some example entries in it to get you started. – sysadmin1138 Jun 5 '11 at 13:08
What I have done for now, I open a set of ports like 1000-1100 in firewall, and set one port per site. Like 1000 unassigned so it works like server:1000 etc. – Charandeep Singh Jun 5 '11 at 13:10
Alright thanks, I will look into this. – Charandeep Singh Jun 5 '11 at 13:11
Hello again, #1 works great. I just added domain names in my hosts file, its started working. Thanks a lot! – Charandeep Singh Jun 5 '11 at 14:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.