ip2region is an offline IP geolocation library and data-management framework supporting both IPv4 and IPv6. It ships with raw IP datasets and optimized XDB database files for city-level region lookup. Returned records can include country, province, city, ISP, and ISO country-code information. The XDB format supports large datasets, deduplication, compression, and customizable region fields. Query implementations are available for many languages, including Go, Java, Python, PHP, Rust, C, C++, JavaScript, C#, Lua, Erlang, and others. Several cache strategies allow applications to trade memory use for faster query performance, with fully cached lookups operating at microsecond-level speeds. The project also includes tooling for generating, editing, and updating XDB datasets.

Features

  • Offline IPv4 and IPv6 geolocation
  • City-level region and ISP lookup
  • High-performance XDB database format
  • Multi-language query clients
  • Configurable file and memory caching modes
  • XDB generation, editing, and data management tools

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow ip2region

ip2region Web Site

Other Useful Business Software
Paessler: Easy to Use With Enterprise Power. Free Trial Icon
Paessler: Easy to Use With Enterprise Power. Free Trial

A low-code dashboard makes monitoring intuitive for any admin, while scripting and custom sensors give experts full control.

You shouldn't have to choose between a monitoring tool that's easy to use and one that's powerful enough for a complex environment. PRTG's low-code interface lets any admin build dashboards, set alerts and monitor devices without scripting, while custom sensors and full API access are there when your team needs deeper control. One platform, no compromise. Download a free 30-day trial now.
Get Free Download
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of ip2region!

Additional Project Details

Programming Language

Go

Related Categories

Go Libraries

Registered

2026-09-17