GLBasic forum

Main forum => Off Topic => Topic started by: MrTAToad on 2010-Dec-05

Title: Quick test
Post by: MrTAToad on 2010-Dec-05
Could you all try this :

http://www.un-map.com/ip2country/ip2country.php (http://www.un-map.com/ip2country/ip2country.php)

and make sure that the country code/name is correct :)

It returns your IP address, country code (2 and 3 code version) and country name
Title: Re: Quick test
Post by: Ian Price on 2010-Dec-05
XX.XXX.XX.XX GB GBR United Kingdom

Sounds about right here.
Title: Re: Quick test
Post by: Marmor on 2010-Dec-05
92.224.171.75 DE DEU Germany
ok !
ip-to-country.csv ??
Title: Re: Quick test
Post by: hardyx on 2010-Dec-05
xxx.xxx.xxx.xxx ES ESP Spain
works for me too.
Title: Re: Quick test
Post by: okee on 2010-Dec-05
109.76.24.242 IE IRL Ireland

same ip as reported by whatsmyip.org
Title: Re: Quick test
Post by: Wampus on 2010-Dec-05
Canada as expected
Title: Re: Quick test
Post by: Moru on 2010-Dec-05
Works fine on three different IP's from three different ISP's in Sweden :-)
Title: Re: Quick test
Post by: Neurox on 2010-Dec-05
xx.xxx.xxx.xxx IT ITA Italy
Work for me!  =D

Title: Re: Quick test
Post by: Hatonastick on 2010-Dec-05
xx.xxx.xxx.x AU AUS Australia

Worked fine here too.
Title: Re: Quick test
Post by: MrTAToad on 2010-Dec-06
Sounds like its all pretty accurate.

Quoteip-to-country.csv ??
I was hoping to intergrate the csv file into a mySQL database, but the PHP just wouldn't connect, so I found an alternative way of doing it.
Title: Re: Quick test
Post by: Kitty Hello on 2010-Dec-06
Works here, too. Ace work!
Title: Re: Quick test
Post by: Hark0 on 2010-Dec-06
 :good:
Title: Re: Quick test
Post by: MrTAToad on 2010-Dec-06
Quote from: Ocean on 2010-Dec-06
Generally, in the retail market, geo-locating IP addresses will work ok.  Please note that multi-national corporations have address spaces that they use spanning multiple countries.  In such cases you might get a correct country (corporation wise) but not the correct geographical location of the actual address user.

Ocean
That shouldn't be too much of a problem - my Language selection routine allows the user to change the country thats returned from the web routine.

I didn't actually write the main routine - the actual code is from http://chir.ag/projects/geoiploc/ (http://chir.ag/projects/geoiploc/) - I just slightly modified the interface code :)
Title: Re: Quick test
Post by: Millerszone on 2010-Dec-06
xx.xxx.x.xxx+US+USA+United States  :good:
Title: Re: Quick test
Post by: erico on 2010-Dec-06
187.105.220.26+BR+BRA+Brazil
Title: Re: Quick test
Post by: MrTAToad on 2010-Dec-07
Thanks for that - all seems to be accurate :)