• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

IP Address to country

Contributor ,
Aug 13, 2006 Aug 13, 2006

Copy link to clipboard

Copied

Anybody know of a place I can pull this info from for free? Or is there a CF or even Perl script that will do this out there somewhere?

All I really need to know is if the IP is USA or not but I would love to be able to tell exactly where (down to just a city level) a person is connecting to my store front from.
TOPICS
Advanced techniques

Views

606

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 13, 2006 Aug 13, 2006

Copy link to clipboard

Copied

I was curious about this so I googled ip address by country.

These guys, http://www.ip2location.com/, got my isp right and everything else wrong, including the country. Other sites all picked up the same ip address, which isn't mine.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 13, 2006 Aug 13, 2006

Copy link to clipboard

Copied

Not sure if this is exactly what you're after but, try http://www.sustainablegis.com/projects/geolocator/
It should return the country of origin for the IP address.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 13, 2006 Aug 13, 2006

Copy link to clipboard

Copied

quote:

Originally posted by: xSeanx
Not sure if this is exactly what you're after but, try http://www.sustainablegis.com/projects/geolocator/
It should return the country of origin for the IP address.

These guys got my country right. They got the same ip address as the other sites. I suspect the ip address belongs to my isp.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 13, 2006 Aug 13, 2006

Copy link to clipboard

Copied

I tried this one, it works if I just want the country, but if I try any of their other features it throws an error dealing with the results of the query.

http://www.hostip.info They got my country right but everything else wrong.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 13, 2006 Aug 13, 2006

Copy link to clipboard

Copied

once you go below country level data, especially outside the US, accuracy starts to get "iffy". that's one reason why we stopped at country (though we do also try to guess locale as well).

as far as IPs go, we're only working w/what's available to cf via CGI vars. we don't do any tracing, etc. to figure out the end user's exact IP as more often than not it's still within that country (at least more than 90% of the time any way).

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 13, 2006 Aug 13, 2006

Copy link to clipboard

Copied

So is Google taking wild guesses for cities or do they know something we don't in their Google Analytics?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 13, 2006 Aug 13, 2006

Copy link to clipboard

Copied

LATEST
if you look at their data more closely you'll see that they will often miss more than they get (ie get country but not city).

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation