Tagged articles
3 articles
Page 1 of 1
Top Architect
Top Architect
Apr 1, 2024 · Backend Development

Using the ip2region Offline IP Location Library with Java

This article explains how to implement IP‑location lookup by recommending the free ip2region offline library, provides Maven dependency details, shows step‑by‑step Java code for loading the XDB file, querying an IP address, interpreting the result format, and highlights its high accuracy and cross‑region support.

BackendJavaip-location
0 likes · 7 min read
Using the ip2region Offline IP Location Library with Java
21CTO
21CTO
Aug 5, 2018 · Backend Development

How to Detect Visitor Country and City in PHP Using geoplugin.net

This article presents a simple PHP function that leverages the free geoplugin.net API to retrieve a visitor's country code and city based on their IP address, explaining how to determine the client IP, fetch JSON data, and return the location information for use in forms or access control.

Backendgeolocationgeoplugin
0 likes · 2 min read
How to Detect Visitor Country and City in PHP Using geoplugin.net