How to bind localhost to 127.0.0.1 on Mac?
<p>I have a running web application on my local machine. To get access to it I can use <code>localhost:8080</code>. But when I try to use <code>http://127.0.0.1:8080</code> address my browser says: <code>The 127.0.0.1 page isn’t working</code>. </p>

<p>Ping to it does not work as well:</p>

<pre><code>ping 127.0.0.1:8080
ping: cannot resolve 127.0.0.1:8080: Unknown host
</code></pre>

<p>How can I fix it?</p>