Mobile app version of vmapp.org
Login or Join
Michele947

: IIS website resolve to IP IIS newb. In IIS How do I get my website to resolve to an IP address as well as it's associated domain name? It currently resolves through the domain but I also

@Michele947

Posted in: #Iis

IIS newb. In IIS How do I get my website to resolve to an IP address as well as it's associated domain name? It currently resolves through the domain but I also need to able to view it via the IP.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Michele947

2 Comments

Sorted by latest first Latest Oldest Best

 

@Chiappetta492

How a website responds in IIS (any version) largely depends on how you setup the website. That statement (and the answer that follows) is also true for other web servers such as Apache. There are three primary "keys" that identify a website in IIS:


IP address
Port
Host headers


Consider the following example:

DNS 'A' record for yourwebsite.com points to 192.168.10.200 (which is your host server IP address). When you setup your website in IIS, you indicate that it should be listening on that IP address (and not "All Unassigned"). It will be listening over port 80 by default. If that is the only website setup on that server (and thus, that IP address), and you do not include a host header in the website configuration, IIS will respond if you enter either 'http://www.yourwebsite.com' or 'http://192.168.10.200.'

If you have a situation where you have multiple websites on the same IP address, then you will have to setup the websites in IIS to either user host headers or a different port number.

10% popularity Vote Up Vote Down


 

@Candy875

I'll answer for II6. Other versions will vary slightly. If you right click on the website in IIS Manager and choose properties then a dialog box comes up. On the first tab is an IP address dropdown and you can choose it from there or click Advanced and add it there.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme