title: Can not get remote ip in Rails 3
body: <p>I am trying to get client ip in Rails 3.
  Application is installed in cloud hosting, with SSL, and nginx server.</p>
  
  <p>I wrote some code to get client ip.</p>
  
  <pre><code>request.remote_ip
  request.env['HTTP_X_FORWARDED_FOR']
  </code></pre>
  
  <p>But it returns wrong address, like '10.159.21.86'
  Is there any issue related Nginx server, or SSL installation?</p>