title: Bad Request - Invalid Hostname ASP.net Visual Studio 2015
body: <p>After debugging my website in Visual Studio 2015, I can visit it via localhost:50544. I would like to visit my website on a different computer from which it is being served upon that is also on the same network. To do this I should be able to visit that computers address which is 192.168.1.13:50544.</p>
  
  <p>However when visiting this address I get a 'Bad request, invalid host name' error. Even if I visit it on the same machine as the website is being served on.</p>
  
  <p>Following the advice <a href="https://stackoverflow.com/questions/22044470/bad-request-invalid-hostname-while-connect-to-localhost-via-wifi-from-mobile-ph">here</a> I have created the following windows firewall rule and have also tried turning the firewall off entirely. <a href="https://i.stack.imgur.com/p30Oj.png" rel="noreferrer"><img src="https://i.stack.imgur.com/p30Oj.png" alt="picture of firewall rule"></a></p>
  
  <p>I'm using IIS express and so have added to the '~\Documents\IISExpress\config\applicationhost.config' file</p>
  
  <pre><code>&lt;binding protocol="http" bindingInformation=":8080:localhost" /&gt; //original rule
  &lt;binding protocol="http" bindingInformation="*:50544:192.168.1.13" /&gt;
  </code></pre>
  
  <p>But visiting 192.168.1.13:50544 on any machine still results in the 'Bad Request' error. </p>