title: Can't open local IIS site in IE or Edge
body: <p>I have a site set up locally to do development on it and I have added it to iis and edited my host file with the url (see below).  However, when I browse to the url I only get the "hmm, we can't reach this page" message.</p>
  
  <p>The site works well in all other browsers including ie 11 so I was wondering if there are any settings to get local sites to work on edge.</p>
  
  <p>I have been searching and could only find this <a href="https://stackoverflow.com/questions/30334289/cant-open-localhost-in-microsoft-edge-project-spartan-in-windows-10-preview">related post</a>, but the accepted answer on that makes no difference to me as the option is already checked on my edge.  I have also tried the rebooting and flushing my dns but both didn't work.</p>
  
  <p>I am using windows 10 and iis version 10 build 10240</p>
  
  <p><strong>Hosts File</strong></p>
  
  <pre><code># localhost name resolution is handled within DNS itself.
  #   127.0.0.1       localhost
  #   ::1             localhost
  127.0.0.1       localhost loopback     # tried with and without this as thought it may have something to do with the loopback option in edge
  127.0.0.1       test.local
  127.0.0.1       dev.local
  </code></pre>
  
  <p>Other links I have managed to find - no solutions though and the second one seems to suggest that we just use ie11:</p>
  
  <p><a href="https://stackoverflow.com/questions/32384571/why-does-microsoft-edge-open-some-local-websites-but-not-others-where-the-doma?rq=1">Why does Microsoft Edge open some local websites, but not others, where the domain name is routed to 127.0.0.1 in hosts file</a></p>
  
  <p><a href="https://social.technet.microsoft.com/Forums/en-US/246298d8-52c1-4440-8d7f-05329d50e653/edge-browser-hosts-file?forum=win10itprogeneral" rel="noreferrer">https://social.technet.microsoft.com/Forums/en-US/246298d8-52c1-4440-8d7f-05329d50e653/edge-browser-hosts-file?forum=win10itprogeneral</a></p>
  
  <p><strong>Update</strong></p>
  
  <p>Could it be something to do with the fact the site app pool is running under my work account instead of IIS or Network services (I cannot run under the latter 2 as they don't have the correct privileges to browse certain folders on my computer)</p>
  
  <p><strong>Update 2</strong></p>
  
  <p>For anyone coming to this who has tried everything below.  I have found out it may be something to do with my windows 10 installation - My first install on the machine was windows 8.  I then upgraded this to 8.1 and the up to 10 when that came out.  </p>
  
  <p>Having had issues with a few other things, I bit the bullet and did a completely fresh install of windows 10 and voila, everything works perfectly!</p>
  
  <p>May be a bit drastic, but if all else fails...</p>
  
  <p><strong>Update 3</strong></p>
  
  <p>I recently got a new work machine and had this problem all over again, tried everything but still couldn't get it to load - turns out that the work proxy was causing the issue so if you try everything below and have a proxy, check the proxy is not blocking it</p>