Enonic Market Enonic Market
GeoIP Lib icon

GeoIP Lib

Get location information from IPv4 or IPv6 addresses.

This Enonic XP library uses the GeoLite2 database from MaxMind to return location information for a supplied IP address. The location information includes city name, region, country, continent, ISO codes, timezone, latitude and longitude and more.

The GeoLite2_City.mmdb database must be downloaded from the MaxMind website and placed in the XP installation's $XP_HOME/config folder. See the documentation for details.


  1. 2.0.0

    • Upgraded to XP7
    • Compatibility:
      • 7.0.0
  2. 1.0.1

    • Removed unused libraries.
    • Compatibility:
      • 6.5.1
  3. 1.0.0

    • First public release
    • Compatibility:
      • 6.5.1

Download GeoIP Lib

This version requires XP

An XP library is normally included in your application through the Gradle build script like this:

                    dependencies {
    include 'com.enonic.lib:lib-geoip:2.0.0'

Download the source code for GeoIP Lib

Documentation for GeoIP Lib