title: Chrome cannot connect to http://localhost:8080 but http://127.0.0.1:8080 works
body: <p>This question is similar to the one <a href="https://stackoverflow.com/questions/33524826/localhost-not-working-in-chrome-127-0-0-1-does-work">here</a>, but that question is 18 months old and I have more specific information.</p>
  
  <p>I am running a node.js development server on my local PC (Windows 7), and it is set to listen on <code>localhost:8080</code>.</p>
  
  <p>Using IE11 or Firefox, I can successfully connect to both <code>http://localhost:8080</code> and <code>http://127.0.0.1:8080</code></p>
  
  <p>Using Chrome (version 58), I can successfully connect to <code>http://127.0.0.1:8080</code>, but I <em>can't</em> connect to <code>http://localhost:8080</code> - it gives me <code>ERR_CONNECTION_RESET</code>.</p>
  
  <p>However, if I configure the node server to a different port, say 8081 or 8888, then Chrome can happily connect using <code>localhost</code> as well. So it is not a name resolution problem, but specific to choice of port number.</p>
  
  <p>So what is special in Chrome about <code>localhost</code> when using port 8080?</p>