Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What services can I used to find a user's location based on their IP address?

If you need to locate a user based on their IP address, what services are available (free and not free services are fine)?

P.S. I understand that some users use proxies etc., that means the result is not 100% accurate. That's ok.

like image 966
Michael Pryor Avatar asked Aug 31 '08 18:08

Michael Pryor


People also ask

Can you find someone's location with their IP?

The IP address routes Internet traffic to your computer. To clarify, it does not reveal your location. If someone was able to get your IP address they could learn a bit about your Internet service, such as which provider you use to connect to the internet, but they really can't locate you, your home, or your office.

How do I find the exact location of an IP address?

To find the exact location of your IP address, just visit our website IP-Lookup.org. Here you will find and get all the relevant details related to your IP. To find out exact location from a specific IP, other than your own, you need an IP, but you can also use a domain name.


2 Answers

Most geolocation services allow you to download a database full of IP Address to city or country maps. Some also provide web service apis for free (limited number of requests) or a paid subscription.

MaxMind has one such service that you can use which is free to determine the user's location. Their minFraud service allows 500 free queries per day.

A sample for their web service in ASP

Dim objHttp, strQuery strQuery = "http://geoip1.maxmind.com/a?l=" & license_key & _     "&i=" & ipaddress set objHttp = Server.CreateObject("Msxml2.ServerXMLHTTP") objHttp.open "GET", strQuery, false objHttp.send Response.Write objHttp.ResponseText Set objHttp = Nothing 

They also offer APIs for determing credit card fraud probability based on location, card number, etc, in their paid version.

Another service is ip2location. John Millikin

Also, IPLigence offers 50 free queries a day.

For .NET Coders, there is the IPAdressExtensions module (open source, free and no web service required) purekrome


More info about geolocation is available on wikipedia.

like image 153
Michael Pryor Avatar answered Oct 05 '22 03:10

Michael Pryor


It's also worth noting that MaxMind allow you to download their geolocation database as a CSV file:

  • http://www.maxmind.com/app/geolitecity
like image 38
GateKiller Avatar answered Oct 05 '22 02:10

GateKiller