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.

  • Which version of IIS? Commented May 27, 2011 at 7:54

2 Answers 2


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:

  1. IP address
  2. Port
  3. Host headers

Consider the following example:

DNS 'A' record for www.yourwebsite.com points to (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 ''

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.

  • This sounds great. It is the only domain on this IP. Thanks. Commented May 29, 2011 at 9:41

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.