Shawn, I recall we discussed this a while ago in Email, but I figured this would be a decent first post in your new forums (nice idea!) and that way, any answer you provide is logged for others. I've also written an IP address to country geo-location tool which simply uses the Geo::IPFree Perl Module to provide the info. I remember you do some more sophisticated analysis, and am just curious about the nuts-n-bolts if you are willing to share 'em. Keep up the good^H^H^H^HGREAT work! ;-) alek http://www.komar.org/
Nothing too exciting with it actually... basically it just goes to the IP registry source (ARIN, RIPE, etc.) and queries their databases for the info. In reality, you can get more detailed info (company, address, etc.) that owns it, but for the purpose of determining the country, all that info is useless to me. - Shawn
Alek, Any idea where i can get hold of an ASP or PHP implementation of the same? Thanks Satyajeet http://www.novasoft-inc.com
I'm just a Perl guy - Shawn is Mr. PHP ... but I don't think he'll release source code for this ... but the sources are commonly available (I reference a Perl Module), so you could track this down and/or build yourself. alek
I've maded a PHP version. It uses a mysql DB (info from: http://ip-to-country.webhosting.info/) Test it at: http://testes.aborla.net/ip.php If you want the source, just drop me an e-mail: nuno AT aborla DOT n e t