This library is deprecated and no longer supported. Please use https://github.com/chrislim2888/IP2Location-C-Library
IP2Location is a tool allowing user to get IP address information such as country, region, city, latitude, longitude, zip code, time zone, ISP, domain name, connection type, area code, weather, mobile network, elevation, usage type by IP address (IPv4 or IPv6) from IP2Location BIN database.
For more details, please visit:
http://www.ip2location.com/free/applications
[ Unix/Linux ]
./autogen.sh
./configure
make
make install
Query an IP address and display the result
ip2location --datafile [IP2LOCATION BIN DATA PATH] --ip [IP ADDRESS]
Query all IP addresses from an input file and display the result
ip2location --datafile [IP2LOCATION BIN DATA PATH] --inputfile [INPUT FILE PATH]
Query all IP addresses from an input file and display the result in XML format
ip2location --datafile [IP2LOCATION BIN DATA PATH] --inputfile [INPUT FILE PATH] --format XML
wget http://www.ip2location.com/downloads/sample.bin.db24.zip
unzip samples-db24.zip
Email: support@ip2location.com
URL: http://www.ip2location.com