Rails client IP ::1?
<p>I am trying to fetch client IP from Rails, but when I am testing this on my local machine I get <code>::1</code> instead of <code>127.0.0.1</code>.</p>

<p>I have tried the following two approaches in my controller:</p>

<p><code>request.remote_addr</code></p>

<p><code>request.remote_ip</code></p>

<p>Trying on Rails 5 beta3 if that matters.</p>