Link to home
Start Free TrialLog in
Avatar of canuckconsulting
canuckconsultingFlag for United Kingdom of Great Britain and Northern Ireland

asked on

How to reference a specific site hosted by IIS by IP address

I have configured IIS to have three sites: SiteA, SiteB and SiteC.  

I access the IIS server by it's IP address and am struggling with how to access the site for testing using just the IP address.  I have tried http://123.123.123.123/SiteA but that doesn't seem to work.  How can I reference my sites?
Avatar of becraig
becraig
Flag of United States of America image

How are your sites configured ?

Do they each have a separate IP Address ?

Or do you use host headers to bind them all to one IP address ?

What version of IIS/ Windows are you using?
Avatar of canuckconsulting

ASKER

At the moment each site is set to use the same  IP address.

Under site binding I have it set to:
Type: HTTP
IP Address:  All Unassigned
Port: 80
Host Name: test.SiteA

Using IIS 7 / Windows Server 2008 R2 Data Centre.
SOLUTION
Avatar of akalyan911
akalyan911
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry for delay replying guys.

The server as I've inherited it has a single static IP address visible on the internet (Class A I think)?  It is basically a cloud server which is internet facing.

Is there no way to test internally on the box itself?  I currently only have one domain name available to me so have no other registered names to give to the individual sites.
If you want to test internally you can simply create an entry in the host file

This would allow you to test internally.


You can also create other A records pointing to the same IP and simply create a host mapping in IIS to resolve that url to that site when a call is made.
Thanks very much for the input.  I wasn't familiar with host name bindings but now think I understand it.  

If the domain name associated with the single static IP is xyz.com understand that SiteA.xyz.com can be set to resolve to that specific site and SiteB.xyx.com to the other.  In IIS I've added these bindings but that doesn't seem to be working.  Is there another step I need to do to support hostnames?

Thanks again.