title: how to set an ip address as the host header in IIS 7.5 bindings
body: <p>I am having an issue getting an IIS 7.5 website to answer when I connect to it using an IP address.</p>
  
  <p>I have a Win2008 Server set up with IIS 7.5. It has only one IP address bound to it (10.10.10.10), and IIS listens on it just fine. I have IIS hosting two websites: defaultsite and mysite. Both of these two are necessary to be present. (To be fair, I have many more sites, but 2 will simplify things.)</p>
  
  <p>Defaultsite is your typical IIS default site and has an IIS binding of "*:80:"</p>
  
  <p>I want to access "mysite" via the DNS name but also the public IP address 1.1.1.1. So I've added the appropriate bindings: 
  "<em>:80:1.1.1.1"
  "</em>:80:mysite.com"</p>
  
  <p>My DNS and load balancer are moving traffic just fine to the IIS server. Everything works fine when hitting the server via "mysite.com" and I get the defaultsite if I try other ways to get to the server.</p>
  
  <p>The problem is when I use 1.1.1.1 to get to the server, I get there, but I'm still sent over to the "defaultsite" rather than "mysite." My IIS logs and the file contents I retrieve verify this behavior.</p>
  
  <p>Any ideas on how to get an IP address set as the host header on a site binding? (Searching for this situation is vexing; since all my key terms are present any time you work with host headers/bindings.)</p>