Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

In Windows Server 2008 we can host multiple websites under a single IP by relying on Host headers. My problem is I have only one IP address and I want to dedicate it to a single application like below:

Host : * (for any host header. to provide *
IP :
Port : 80

Now I want to do this with another application, too, like this:

Host : * (for any host header. to provide *
IP :
Port : 80

I can't use the same IP twice because it will create a conflict. So I thought I would use an alternative to port 80 and redo the second application like below:

Host : * (for any host header. to provide *
IP :
Port : 234

Is this possible? Can I then connect to without specifying the port in the URL?

Need this =>
Not this =>

I am using IIS.

share|improve this question
What web server are you using? – wfaulk May 9 '12 at 23:07
Windows Server 2008 with IIS 7 – Codeel Technologies May 9 '12 at 23:13

No, you can't run on a different port than port 80 without specifying the port in the URL.

But why can't you just set your web server to provide the first site when the Host: header matches "*" and the second site when it matches "*"? (Someone might even be able to tell you how to do that if you tell us what web server you're using.)

share|improve this answer
@wafaulk yes we can use just "". but my problem is i want host header like * & * if i leave host header field as blank then any host header which one pointing to this ip will work automatically. So i can easily get unlimited subdomains without manual creation by single DNS A record. for example "" – Codeel Technologies May 9 '12 at 23:00
I understand, but, depending on your web server, you might be able to use wildcards exactly like in your comment, which would make more sense. – wfaulk May 9 '12 at 23:02
@wafualk am unable to create multiple wildcard domains with a single ip – Codeel Technologies May 9 '12 at 23:06
in iis we can't use any host header with a symbol like * in website bindings – Codeel Technologies May 9 '12 at 23:09

If you're using Apache you can use name based virtual hosts. It provides a solution to this exact situation whereby it will answer for any domain you wish on the same IP address.

share|improve this answer
it may be. but am using windows server 2008 :( – Codeel Technologies May 9 '12 at 23:10
@Svinn - Apache does run under Windows. I think you mean to indicate you're using IIS – Mark Henderson May 9 '12 at 23:11
yes using IIS 7 @wfaulk – Codeel Technologies May 9 '12 at 23:16
@Svinn IIS does name based virtual hosts too – Zypher May 9 '12 at 23:23
bcoz of this… i cant use name based virtual hosts for wildcards – Codeel Technologies May 9 '12 at 23:25

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.