Skip to content

n1tr0/IP2Location-C-Library

 
 

IP2Location C Library

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. The library reads the geo location information from IP2Location BIN data file.

Supported IPv4 and IPv6 address.

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

Installation

Unix/Linux

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

autoreconf -i -v --force
export CFLAGS=-I/usr/include/malloc 
./configure
make
cd data
perl ip-country.pl

Testing

cd test
test-IP2Location

Sample BIN Databases

Support

Email: support@ip2location.com.
URL: http://www.ip2location.com

About

IP2Location C library enables the user to find the country, region, city, coordinates, zip code, time zone, ISP, domain name, connection type, area code, weather and mobile information that any IP address or hostname originates from.

Resources

License

LGPL-3.0 and 2 other licenses found

Licenses found

LGPL-3.0
COPYING
GPL-3.0
LICENSE.GPLv3
LGPL-3.0
LICENSE.LGPLv3

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Shell 49.9%
  • C 33.6%
  • Makefile 14.1%
  • C++ 1.3%
  • Other 1.1%