Recently, in connection with our game browser project, we've been interested in geo-locating IP addresses.
This can be done with GeoIP and others. We found
another project that makes available a free CSV file. Namely direct-i's ip-to-country project - Their CSV is located here! Naturally this
is unusable in itself for anything but converting it to a usable form, such as databases, or a specialized format.
I designed a binary format for very fast searching. We have achieved
speeds in excess of three million lookups per second! To give you some ideas
of the speed, we have tested our various implementations, looking up
18328 unique IP addresses (in the C implementation we repeat those 100
times to get a more accurate benchmark).
We're releasing it under the GPL. Have a look!
If you're using this software, we would like to know! We're thinking of compiling a list of links to projects that use it - So if you would like to be listed, drop us a mail! A mail link is at the bottom!
If you find any bugs, or have suggestions/improvements, or anything
else, you're welcome to mail us! (see addresses at bottom)
Also check out the forum for this software! or try the online demo.
You might also subscribe to the IP 2 Country RSS News Feed!
Darren has contacted us to let us know that he made a PHP-version of the binary database builder! So if you can't use our windows executable, or the Python-builder, you can go fetch the source code at his site! Good work, Darren!
Weird Silence has released the following source codes:
Send us mail!