Version 1 (modified by omry, 16 years ago) (diff)



IP2C is a project that provide IP to country resolution using a binary file.
The binary file is compiled from ip-to-country free database.


IP2C is licensed under GPL2, if you would like to use it in a non-gpl application please Contact me to obtain a non-gpl license.

Binary file compiler

The binary file compiler is a small java application that as parameter the input csv file and the output bin file to create.
Usage: java net.firestats.ip2c.IP2CountryCompiler input.cvs output.bin

IP2Country resolver

usage java net.firestats.ip2c.IP2Country
PHP class coming soon.


Current java code takes less then 20ms to lookup an ip address in the full database on my computer.
this is working directly on the file, so memory usage is minimal.