I'm I bit of an IIS / Web noob (I'm a C# backend service / winforms dev) so please bare with me :-)
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 127.0.0.1 www.blog.sourcecube.co.za 26581 127.0.0.1
in my hosts file (drivers\etc\hosts), i've added the folling entries:
127.0.0.1 blog.sourcecube.co.za 127.0.0.1 www.blog.sourcecube.co.za
when i ping my domain name from the command line it does in fact resolve to the loopback address, 127.0.0.1.
So what I'm expecting to happen when i navigate to blog.sourcecube.co.za in my browser is for it to resolve to 127.0.0.1, 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?
--- UPDATE ---
Navigating to blog.sourcecube.co.za:26581 from my browser works... I'd like get it working without specifying the port number though.