Skip to content

IP2Lacation is a shared library for reading ip2location DB files from ip2Location.com

License

GPL-2.0, LGPL-3.0 licenses found

Licenses found

GPL-2.0
COPYING
LGPL-3.0
LICENSE.TXT
Notifications You must be signed in to change notification settings

guru2018/IP2Location

Repository files navigation

===========================
IP2Location C Library 5.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

[ Windows ]
Execute "vcvarsall.bat". (This file is part of Microsoft Visual C, not ip2location code) 
nmake Makefile.win

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

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

About

IP2Lacation is a shared library for reading ip2location DB files from ip2Location.com

Resources

License

GPL-2.0, LGPL-3.0 licenses found

Licenses found

GPL-2.0
COPYING
LGPL-3.0
LICENSE.TXT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published