Forum Moderators: open

Message Too Old, No Replies

Database to match IP to location

Are they available?

         

Jeremy_H

3:37 am on May 31, 2006 (gmt 0)

10+ Year Member



Hello,

I would like to take an IP address and be able to search by it in a MySQL database to find its location.

Ideally it would give country, city (and if in US the ZIP code too) in CSV format.

I don't want to rely on a third party tool, but would like to obtain/purchase a database like this.

Are such databases possible or obtainable, and might they be feasible?

BlackRaven

6:17 am on May 31, 2006 (gmt 0)

10+ Year Member



google "ip2nation" its a mysql db and free. Also has a script to get you started on how to find user ip and their corresponding country.

adb64

6:19 am on May 31, 2006 (gmt 0)

10+ Year Member



A free database to connect an IP address to a country (not a city) can be downloaded from [ip-to-country.webhosting.info...]

aspdaddy

9:29 am on May 31, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You might also want to look at look at GeoLite (Free) and GeoIP (not free).

Jeremy_H

9:48 pm on Jun 1, 2006 (gmt 0)

10+ Year Member



Thank you, those are some great options.

I'm very excited because I can correlate data now from the ip database I have now to match a zip code database I already had (if they live in the US).

This opens up so many possibilities!

solly

4:27 pm on Jun 3, 2006 (gmt 0)

10+ Year Member



There's also hostip.info, but the data are not that accurate, it seems (at least for my IP address).

DanA

4:35 pm on Jun 3, 2006 (gmt 0)

10+ Year Member



Be careful, whatever the database, the precision is not too bad for countries but it is not reliable with states or cities.