Get real IP address in local Rails development environment
As far as I can see there is no standard method for getting the remote address of your local machine. If you need the remote address for (testing) your geocoding, I suggest adding 127.0.0.1 to your database table that matches IP addresses with locations. As a last resort you could also hard code your remote … Read more