Registry / utility / ip2region

ip2region

JSON →
library3.3.7javamavenunverified

An offline IP address location library supporting both IPv4 and IPv6.

<dependency> <groupId>org.lionsoul</groupId> <artifactId>ip2region</artifactId> <version>3.3.7</version> </dependency>
INSTALL
IMPORT
SIG · IP2REGION
I
ip2region
utilityjavav3.3.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Ip2region
org.lionsoul.ip2region.Ip2region

Look up IP address location

import org.lionsoul.ip2region.Ip2region; Ip2region ip2region = new Ip2region(); String region = ip2region.btreeSearch("8.8.8.8"); System.out.println(region);
Debug
Known issues
gotchaDatabase file must be loaded; default path may not exist
fix
Ensure ip2region.xdb file is in classpath or specify path explicitly
affects: *
Upgrade
Version history
3.3.7latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
ip2region — mvn dependency:get ip2region · libregistry