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'll do my best to explain this.

I've got a Windows 2008 server with TWO local intranet-sites running on it.

The first website will open if you just type in the name of the IP address -

I set the second website up on port 85. So if you go to the IP addresss, it will open the second website. I had our IT department create a subdomain on our local intranet,, and asked them to set it to the IP address and port of the second website. They said that it wasn't possible to include the port, that I would have to use to get to the correct site.

So, I've spent the entire day, playing around in IIS trying to find a way to forward this incoming traffic to the correct port.

Any ideas?

share|improve this question
It is a virtual hosting configuration that you need, not a port forwarding one (unless you also use HTTPS). However, I don't know about IIS configuration. – Tonin Apr 1 '13 at 17:11

Change the port on the second web site to port 80 and then configure host headers for each web site for the appropriate name.

share|improve this answer
Bingo! I had it setup exactly like this, but couldn't get it to work - except I was using a different port number. I changed it back to default, and boom, worked perfectly. Thanks so much. – Josh Apr 1 '13 at 20:34
Glad to help... – joeqwerty Apr 1 '13 at 21:51
@Josh Don't forget to upvote this answer and mark it as correct for the benefit of future readers. – Wesley Apr 2 '13 at 0:11

As long as the websites are non-HTTPS and both websites are hosted on the same server, simply tell IIS to use virtual host names (vhost), this will remove the need for separate ports for each site. If they are encrypted, you'll need either separate IP addresses (i.e., 1 for each site) or a wildcard SSL certificate and vhosts.

If the websites are not hosted on the same server, in order to use a subdomain you'll either need a separate IP address for the second website and DNAT port 80 and/or 443 at the router, or have IIS on the first server act as a proxy for the second.

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.