title: nodejs http-server, can't connect localhost
body: <p>I am using nodejs <code>http-server</code> for a web application. I am able to launch the <code>http-server</code> by running <code>nom start</code>. I can access my server through <code>http://127.0.0.1:8080</code> but I can't connect by <code>http://localhost:8080</code>. I have checked that <code>localhost</code> can be ping from my terminal and <code>localhost</code> works fine with other server such as <code>tomcat</code>. So I think the problem relates to <code>http-server</code> only. Is there any configuration I need to setup on my application in order to support <code>localhost</code> access? </p>