Solved

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

Posted on 2014-09-29
7
205 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
Back Up Your Microsoft Windows Server®

Back up 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.

 
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
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 create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

803 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