title: Rails request.ip or request.remote_ip return different value
body: <p>When I store IP of client using req.ip and req.remote_ip then it showing different result when request twice using same device and internet connection.</p>
  <p>for first req it returns:-</p>
  <pre><code>2402:8100:3092:16f4:1:1:cd28:307f
  </code></pre>
  <p>for second request it returns</p>
  <pre><code>27.97.134.92
  </code></pre>
  <p>which is ipv4.</p>
  <p>Is there any way to get either only ipv6 or only ipv4 address?</p>