title: IIS 8 and Windows Authentication
body: <p>I'm having a bit of a hard time figuring out why windows authentication is a acting up in IIS 8 and how to solve a custom deployment.</p>
  
  <p>After almost a day of brute-force debugging why windows authentication simply wouldn't work on my local machine, it turns out that the host name had to be very specific. The only way to get windows authentication to work is to bind to:</p>
  
  <p><code>localhost:80</code> or <code>computername:PORT</code> where <code>PORT</code> is some reasonable port.</p>
  
  <p>In my hosts file I mapped <code>test</code> to <code>127.0.0.1</code> or to <code>::1</code> but it simply don't authenticate me. I've tried to keep everything as nearly to a clean install as possible to avoid other variables. </p>
  
  <p>My problem: How do I make windows authentication in IIS8 through a binding such as  <code>http://test:80</code>? Is this a bug?</p>