Solved

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

Posted on 2014-09-29
7
202 Views
Last Modified: 2014-10-08
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?
0
Comment
Question by:canuckconsulting
  • 3
  • 3
7 Comments
 
LVL 29

Expert Comment

by:becraig
ID: 40350380
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?
0
 

Author Comment

by:canuckconsulting
ID: 40350393
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.
0
 
LVL 4

Assisted Solution

by:akalyan911
akalyan911 earned 250 total points
ID: 40350394
Hi ...

Could you confirm, either it configured on single static IP address or multiple IP address on 3 sites..

If you configured one IIS and like to use for different sites, need that network should access across the 3 sites..

if you could provide the more information, that would be good to assist you..
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 29

Accepted Solution

by:
becraig earned 250 total points
ID: 40350402
If you are using the same IP  then there is no way to call the sites individually using the IP.

Once host headers are employed you can only call specific sites by hostname.

What would be suggested here, would be to add additional ips if you need also to resolve sites by IP Address.
0
 

Author Comment

by:canuckconsulting
ID: 40352931
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.
0
 
LVL 29

Expert Comment

by:becraig
ID: 40352970
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.
0
 

Author Comment

by:canuckconsulting
ID: 40361260
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.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The viewer will learn how to dynamically set the form action using jQuery.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now