How can I find a location such as city/state or country from an ip address?

Is there a ruby gem or python module to do this? Or if there is a website which has an API.

link|improve this question
feedback

2 Answers

You can go here...Any such service is only a rough estimate for ANY IP address, but this is what you are looking for.

http://www.geobytes.com/iplocator.htm (just enter the "IP Address to locate" and hit submit)

link|improve this answer
I have a long list of ip addresses so I was hoping I would be able to do it through a script – ed1t Jun 18 '11 at 18:45
feedback

If you want to see a geolocation from a website you are navigating easily, you should install Flagfox add-on for Firefox: you will se a flag near address bar and clicking, on it, more information (city, IP...).

Also, you can use http://geo.flagfox.net to see the same detais for any IP address or server name.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.