I have Rails 2.3.8, Ruby 1.8.7, Mongrel Web Server and MySQL database.
I am in the development mode and I need to find the real IP address>
This is what I normally do nowadays:
if Rails.env.production? request.remote_ip else Net::HTTP.get(URI.parse('http://checkip.amazonaws.com/')).squish end