I've set up a site in IIS on my local dev machine.

In the bindings section of the site ive added 4 bindings, all 4 for http:

Host Name                   Port    IP Address
blog.sourcecube.co.za       26581   *
www.blog.sourcecube.co.za   26581   *
blog.sourcecube.co.za       26581
www.blog.sourcecube.co.za   26581

in my hosts file (drivers\etc\hosts), i've added the folling entries:   blog.sourcecube.co.za   www.blog.sourcecube.co.za

when i ping my domain name from the command line it does in fact resolve to the loopback address,

So what I'm expecting to happen when i navigate to blog.sourcecube.co.za in my browser is for it to resolve to, and when the request hits IIS, it should know which site to serve because of the host header?

But when I navigate to blog.sourcecube.co.za, I get an "Unable to connect, Firefox can't establish a connection to the server at blog.sourcecube.co.za" error.

What am I doing wrong?

Navigating to blog.sourcecube.co.za:26581 from my browser works. I'd like get it working without specifying the port number though.

1 Answer 1


is the port your mentioning above, the actual port that IIS is listening on? If so, make sure you're entering http://blog.sourcecube.co.za:26581

Your understanding is spot on, so I'm not sure why it would work. What is the specific number error you get? Is it 404, or is it a 500 error?

Edit 1: Pretty simple then, just set your IIS sites to port 80 on any ip address :) Host headers will then take care of the rest. 80 is implied when entering "http", so users wouldn't need to add the port at the end.

See the link below http://support.microsoft.com/kb/308163

IP Address TCP Port Host Header Name 80 www.example1.com 80 example1.com

  • I was just about to come update, when I navigate to blog.sourcecube.co.za:26581 (yes its the actual port ive configured) it works. But id like it to work without specifying the port number... Firefox doesn't give an error code, neither does IE, just says "Internet Explorer cannot display the webpage" Apr 8, 2012 at 18:31
  • see my comments Apr 8, 2012 at 19:29
  • That worked! :-) Apr 8, 2012 at 19:49
  • I was not aware that i could configure multiple sites to use port 80. Thanks Eric! Apr 8, 2012 at 19:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .