All Projects → chrislim2888 → IP2Location-C-Library

chrislim2888 / IP2Location-C-Library

Licence: MIT, MIT licenses found Licenses found MIT COPYING MIT LICENSE.TXT
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 station code, weather station name, mobile, usage types, etc that any IP address or hostname originates from.

Programming Languages

shell
77523 projects
c
50402 projects - #5 most used programming language
perl
6916 projects
Makefile
30231 projects

Projects that are alternatives of or similar to IP2Location-C-Library

IP2Location-PHP-Module
This module is a PHP module that enables the user to find the country, region, city, coordinates, zip code, ISP, domain name, timezone, connection speed, IDD code, area code, weather station code, weather station name, mobile, usage types, address type, IAB category, etc that any IP address or host name originates from.
Stars: ✭ 154 (+316.22%)
Mutual labels:  ipv6, country, timezone, geolocation, domain, ipv4, ip-address, isp, city, elevation, region, ip-lookup, weather-station, ip2location, zip-code, iplocation, area-code, mobile-info
ip2location-nginx
Nginx module that allows user to lookup for geolocation information using IP2Location database.
Stars: ✭ 33 (-10.81%)
Mutual labels:  ipv6, country, geolocation, domain, ipv4, ip-address, isp, city, elevation, region, ip-lookup, weather-station, ip2location, zip-code, iplocation, area-code, mobile-info
ipapi-python
Python bindings for https://ipapi.co (IP Address Location) - Use with python / django / flask for IP address location lookup
Stars: ✭ 42 (+13.51%)
Mutual labels:  ipv6, geolocation, ipv4, ip-address, ip-lookup
IPpy
🚀 Ping IP addresses and domains in parallel to find the accessible and inaccessible ones.
Stars: ✭ 54 (+45.95%)
Mutual labels:  ipv6, domain, ipv4, ip-address
Geolocate-IP-Browser-Extension
A browser extension, which shows you the origin of your IP address.
Stars: ✭ 21 (-43.24%)
Mutual labels:  ipv6, geolocation, ipv4, ip-address
php-ip-anonymizer
IP address anonymizer library for PHP
Stars: ✭ 55 (+48.65%)
Mutual labels:  ipv6, ipv4, ip-address
ip
Immutable value object for IPv4 and IPv6 addresses, including helper methods and Doctrine support.
Stars: ✭ 212 (+472.97%)
Mutual labels:  ipv6, ipv4, ip-address
ipv6
IPv6-adresse.dk source & data
Stars: ✭ 27 (-27.03%)
Mutual labels:  ipv6, ipv4, isp
Ipnetwork
A library to work with CIDRs in rust
Stars: ✭ 64 (+72.97%)
Mutual labels:  ipv6, ipv4, ip-address
hphr
Halophile Router (a VyOS-based, SaltStack-automated, NetBox-configured router for small provider networks)
Stars: ✭ 39 (+5.41%)
Mutual labels:  ipv6, ipv4, isp
go-inet
A Go library for reading, formatting, sorting, lookup and converting IP-addresses and IP-blocks
Stars: ✭ 14 (-62.16%)
Mutual labels:  ipv6, ipv4, ip-lookup
PHP-IPAddress
IP Address utility classes for PHP
Stars: ✭ 63 (+70.27%)
Mutual labels:  ipv6, ipv4, ip-address
ipaddress
Data analysis of IP addresses and networks
Stars: ✭ 20 (-45.95%)
Mutual labels:  ipv6, ipv4, ip-address
Ipaddress
Java library for handling IP addresses and subnets, both IPv4 and IPv6
Stars: ✭ 197 (+432.43%)
Mutual labels:  ipv6, ipv4, ip-address
private-ip
Check if IP address is private.
Stars: ✭ 26 (-29.73%)
Mutual labels:  ipv6, ipv4, ip-address
Ipwhois
Retrieve and parse whois data for IPv4 and IPv6 addresses
Stars: ✭ 432 (+1067.57%)
Mutual labels:  ipv6, ipv4, ip-address
Countries States Cities Database
🌍 World countries, states, regions, provinces, cities, towns in JSON, SQL, XML, PLIST, YAML, and CSV. All Countries, States, Cities with ISO2, ISO3, Country Code, Phone Code, Capital, Native Language, Timezones, Latitude, Longitude, Region, Subregion, Flag Emoji, and Currency. #countries #states #cities
Stars: ✭ 1,130 (+2954.05%)
Mutual labels:  country, city, region
Laravel World
provide countries, states, and cities relations and database.
Stars: ✭ 222 (+500%)
Mutual labels:  country, city, region
Ip Num
A TypeScript/JavaScript library for working with ASN, IPv4, and IPv6 numbers. It provides representations of these internet protocol numbers with the ability to perform various IP related operations like parsing, validating etc. on them
Stars: ✭ 113 (+205.41%)
Mutual labels:  ipv6, ipv4, ip-address
ip2location-piwik
Use IP2Location geolocation database to lookup for accurate visitor location in Matomo (Piwik) 3.x. It enables the user to find the country, region, city, coordinates, zip code, time zone, ISP, domain name, connection type, area code, weather, MCC, MNC, mobile brand name, elevation, usage type, address type and IAB category that any IP address o…
Stars: ✭ 26 (-29.73%)
Mutual labels:  geolocation, ip-lookup, ip2location

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, address type and category 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: https://www.ip2location.com/developers/c

Installation

Unix/Linux

autoreconf -i -v --force
./configure
make
make install
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
make install
cd data
perl ip-country.pl

Testing

cd test
test-IP2Location

Sample BIN Databases

IPv4 BIN vs IPv6 BIN

  • Use the IPv4 BIN file if you just need to query IPv4 addresses.
  • Use the IPv6 BIN file if you need to query BOTH IPv4 and IPv6 addresses.

NOTES

If you encountered error while loading shared libraries in linux platform, that could be due to the shared library was saved into usr/local/lib that might not be the default library path. You can run the below command

ldconfig /usr/local/lib

References

Address Type

Address type is the IP address types as defined in Internet Protocol version 4 (IPv4) and Internet Protocol version 6 (IPv6). The database return a single character. For the full description, please refer to list below:

  • (A) Anycast - One to the closest
  • (U) Unicast - One to one
  • (M) Multicast - One to multiple
  • (B) Broadcast - One to all
Category

Category is the domain category is based on IAB Tech Lab Content Taxonomy. These categories are comprised of Tier-1 and Tier-2 (if available) level categories widely used in services like advertising, Internet security and filtering appliances. Please refer to https://www.ip2location.com/free/iab-categories for the full list.

Packages for Fedora/Enterprise Linux can be found here

Support

Email: [email protected].
URL: https://www.ip2location.com

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].