title: Visual Studio 2017 - Giving remote users access to website in IIS Express
body: <p>Been looking through and trying all guides i found on this topic but no luck. I am running and MVC project with HTTPS and want to access the debug site with some remote mobile devices to test out the website. I followed a guide that almost work and i think I am pretty close to getting it to work. Here are the steps I have done:</p>
  
  <ul>
  <li>Turn off Firewall</li>
  <li>Open projectfolder of website go to \vs\config\ and open applicationhost.config</li>
  <li>Find your site and line that contains your mapped port like this:
  </li>
  </ul>
  
  <p>-edit it to get this result:
  </p>
  
  <ul>
  <li>Tried to run Visual Studio as Admin at this point, Got regular error 400: Bad Request - Invalid Hostname when trying to access site from other computer</li>
  <li>Opened CMD as Admin and ran the following command:</li>
  </ul>
  
  <p>netsh http add urlacl url=http://*:44363/ user=everyone
  - URL reservation successfully added</p>
  
  <p>-Tried to start Visual studio as admin and non admin. Gets the following error message</p>
  
  <p>"Unable to launch the IIS Express Web Server.
  Failed to reister URL "<a href="https://localhost:44363" rel="noreferrer">https://localhost:44363</a>" for site "x" Application. Error description: Cannot create file when that file already exists"</p>
  
  <p>-I then have to run cmd again and remove the url with the command:
  netsh http delete urlacl url=http://*:44363/</p>
  
  <p>How do i get this to work with Visual Studio 2017 ? I cant be many steps from getting it to work. I have read many guides but none of them works</p>