RepositoryGoCNTrung Quốc
LI

lionsoul2014/ip2region

Ip2region is an offline IP-to-Region localization library and IP data management framework with both IPv4 and IPv6 supports, 10-microsecond level query efficiency, xdb search client for many programming languages

20.0ksao
3.1kfork
3issue
8lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: ipv4-address

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: ipv6-lookup

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: ip-address-location

#1 Repository Của Tuần

🇡��d Offline IP localization at 10-microsecond speed

ip2region delivers city-level IP geolocation offline, supporting IPv4 and IPv6 with sub-100 microsecond query response times.

ip2region is an offline IP address localization library and data management framework. It provides raw IP data for both IPv4 and IPv6, along with pre-built xdb files for city-level queries. The region format follows Country|Province|City|ISP|iso-alpha2-code, with Chinese domestic data in Chinese and international data in English. It supports xdb data generation and query clients across many programming languages.

✨ Highlights

  • Offline Localization: No network dependency, works entirely with local xdb files.
  • Dual Stack Support: Handles both IPv4 and IPv6 address lookups.
  • High-Speed Query: Single query response at 10-microsecond level with xdb files.
  • Memory Acceleration: vIndex caching (512KiB) or full xdb file caching options.
  • Data Deduplication: Automatically merges adjacent IP segments and compresses data.
  • Custom Regions: Append business-specific data like GPS or zip codes to region info.
  • Multi-Language Bindings: Supports Go, Java, Python, PHP, C, Rust, JavaScript, and more.
  • Unified API: Single interface for querying both IPv4 and IPv6 data.

💡 Why it matters

ip2region stands out by offering fully offline IP geolocation without relying on external APIs, making it ideal for privacy-sensitive or high-performance applications. Its xdb engine provides exceptional query speeds while keeping memory usage low through optional caching strategies.

The framework also acts as a complete IP data management solution, allowing users to generate, update, and customize their own IP databases. This makes it suitable for applications requiring precise control over IP localization data, from ad targeting to network analytics.


#IPGeolocation #IPv6 #OfflineLibrary #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryPython
SunsetMkt/anti-ip-attribution

针对部分网站显示IP归属地的流量分流规则

1.1k
Nov 23, 2026
RepositoryJavaScript
yourtion/node-ip2region

IP/IPv6 to region on Node.js (IP/IPv6 地址到区域运营商)

152
Nov 21, 2026
RepositoryGo
mpolden/echoip

A simple IP address lookup service.

4.4k
Sep 5, 2026
RepositoryGo
seancfoley/ipaddress-go

Go library for handling IP addresses and subnets, both IPv4 and IPv6

118
Nov 5, 2026
RepositoryC++
isc-projects/kea

A modern, scalable, robust DHCPv4 and DHCPv6 server.

774
Dec 2, 2026
RepositoryC
blechschmidt/freebind

IPv6 address rate limiting evasion tool (that also supports IPv4)

294
Dec 15, 2023
RepositoryPHP
markrogoyski/ipv4-subnet-calculator-php

PHP library for IPv4 subnet calculations, CIDR operations, and network planning.

175
Nov 10, 2026
RepositoryPython
ip2location/IP2Location-Python

This module is a Python Library 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 and IAB category that any IP address or host name originates from.

165
Dec 31, 2025
Repository
iplocate/ip-address-databases

Free, daily-updated IP to Country & ASN databases and samples from www.iplocate.io

155
Nov 27, 2026