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've successfully set up multiple sites on my server, and as they are all assigned to port 80, I have assigned each a unique host name in the IIS Site Bindings.

Firstly, is this the correct way of doing things?

Secondly, is there any way in which I can now access these using my server IP? I have tried various combinations of 'http://ServerIP:80/' and I just can't get it to work.

Thank you in advance.

share|improve this question
up vote 3 down vote accepted

Your setup does mimic that of a production web server hosting multiple domains, so it is correct if that is your goal.

As for accessing those (virtual) domains, normally that would be via separate DNS records (either directly through A Records or indirectly via CNAME Records) for each domain. The web server would use the URL from the web browser to determine which domain/site is being accessed and then steer the web exchange accordingly.

In your case, for testing, you can manually "fake" the DNS aspects via the local HOSTS file of the client machine running the web browser with the multiple host combinations referring back to your web server. That will allow the URLs entered on the web browser to resolve correctly back to your web server where the URL can then be read by the server to steer the web exchange to the correct site - vs., etc., etc...

share|improve this answer
Thank you! As you were the first to respond I have marked this as the answer. – Jonathan Jun 20 '11 at 21:33
Thanks for that... – user48838 Jun 20 '11 at 21:48

1) Yes

2) You can access only one of your websites via http://ServerIP/ or http://ServerIP:80/, which is the same (to be precise, one site per ip:port combination). To access it this way select the site and create new binding, but leave "Host Name" field blank. This will instruct IIS to treat this site as "catch all" (will be used as the last one in a queue when IIS is unable to match domain name).

To access your local sites via domain names, you can "fake" them by using hosts file, for example (C:\Windows\System32\drivers\etc\hosts).

share|improve this answer

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.