===========================
IP2Location C Library 7.0.0
===========================

IP2Location is a C library that enables the user to find the 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 or hostname originates from.  It contains a demo IP2Location IP-COUNTRY BIN database which consists of real data for IP address range 0.0.0.0 to 99.255.255.255.  This database contains IP address blocks as key and countries as values.  The paid version of IP2Location database covers all IP address range. In general, it is more complete, fast and accurate than using reverse DNS lookups. Developers can download other sample databases to evaluate other features such as region, city, latitude, longitude, zip code, ISP, domain name, connection, area code, weather code, mobile network, elevation, and usage type code using the same C library.

For more details, please visit:
http://www.ip2location.com/c.aspx
http://www.ip2location.com/developers.aspx

This version also supports IP2Location IPv6.

Installation
------------
[ Unix/Linux ]
cd C-IP2Location-<version>
autoreconf -i -v --force
./configure
make
cd data
perl ip-country.pl

[ Windows ]
Execute "vcvarsall.bat". (This file is part of Microsoft Visual C, not ip2location code) 
nmake -f Makefile.win
cd data
perl ip-country.pl

[ MacOS ]
cd C-IP2Location-<version>
autoreconf -i -v --force
export CFLAGS=-I/usr/include/malloc 
./configure
make
cd data
perl ip-country.pl

Testing
-------
cd C-IP2Location-<version>
cd test
test-IP2Location

Download More Sample Databases
------------------------------
cd C-IP2Location-<version>
wget http://www.ip2location.com/download/samples-db24.zip
unzip samples-db24.zip


For support, please email support@ip2location.com.

http://www.ip2location.com
