# (URGENT) Problem with Wowza 4 and GeoIP2

**URL:** <https://community.wowza.com/t/urgent-problem-with-wowza-4-and-geoip2/47961>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [January 25, 2017, 1:12am UTC](https://community.wowza.com/t/urgent-problem-with-wowza-4-and-geoip2/47961 "2017-01-25T01:12:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Florida\_Stream](https://avatars.discourse-cdn.com/v4/letter/f/6a8cbe/32.png) [@Florida\_Stream](https://community.wowza.com/u/Florida_Stream)\
**Post date:** [January 25, 2017, 1:12am UTC](https://community.wowza.com/t/urgent-problem-with-wowza-4-and-geoip2/47961/1 "2017-01-25T01:12:59Z")

</div>

GeoIP\*\*(1)\*\* work fine, but, GeoIP2 dont work, i’m using this samples from maxmind ([https://github.com/maxmind/GeoIP2-java](https://github.com/maxmind/GeoIP2-java))

Im loading GeoIP2-City.mmdb with:

[PHP]public void onAppStart(IApplicationInstance appInstance) {

…

try {

File dbGeoIP2City = new File(Bootstrap.getServerHome(Bootstrap.CONFIGHOME)+File.separatorChar+“GeoIP”+File.separatorChar+“GeoIP2-City.mmdb”);

GeoIP2\_reader = new DatabaseReader.Builder(dbGeoIP2City).withCache(new CHMCache()).build();

} catch (Exception e) {

getLogger().error("Error loading plugins: "+e.toString());

}

}[/PHP]

and this is for print

[PHP] try {

InetAddress ipAddress = InetAddress.getByName(“MY\_IP”);

CityResponse response = GeoIP2\_reader.city(ipAddress);

Country country = response.getCountry();

Subdivision subdivision = response.getMostSpecificSubdivision();

City city = response.getCity();

String \_User\_Country\_Name = country.getName();

String \_User\_Country\_Name\_Iso = country.getIsoCode();

String \_User\_Country\_City = city.getName();

String \_User\_Country\_Region = subdivision.getName();

String \_User\_Country\_Region\_Iso = subdivision.getIsoCode();

getLogger().info("\_User\_Country\_Name: " + \_User\_Country\_Name);

getLogger().info("\_User\_Country\_Name\_Iso: " + \_User\_Country\_Name\_Iso);

getLogger().info("\_User\_Country\_City: " + \_User\_Country\_City);

getLogger().info("\_User\_Country\_Region: " + \_User\_Country\_Region);

getLogger().info("\_User\_Country\_Region\_Iso: " + \_User\_Country\_Region\_Iso);

} catch (Exception e) {

getLogger().error("Error GeoIP: "+e.toString());

}[/PHP]

But it does nothing, what is the problem? Please provide a basic sample for wowza integration, my project was stopped because of that ☹

At least give me an answer is this integration is possible, if not, I will return to normal GeoIP immediately.

---

<div class="post-metadata">

**Author:** ![Jason\_Hatchett](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hatchett/32/391_2.png) [@Jason\_Hatchett](https://community.wowza.com/u/Jason_Hatchett)\
**Post date:** [May 23, 2017, 9:58am UTC](https://community.wowza.com/t/urgent-problem-with-wowza-4-and-geoip2/47961/2 "2017-05-23T09:58:28Z")

</div>

Hello,

The GEOIP2 database format has not been implemented, when it is this article:

[https://www.wowza.com/docs/how-to-enable-geographic-locking-modulegeoiplock](https://www.wowza.com/docs/how-to-enable-geographic-locking-modulegeoiplock)will be updated to reflect that support, and these changes usually happen around the same time as a version update.

A change like this will also be listed on our Software Updates page:

[https://www.wowza.com/docs/wowza-streaming-engine-software-updates](https://www.wowza.com/docs/wowza-streaming-engine-software-updates)

Regards,  
Jason Hatchett

---

<div class="post-metadata">

**Author:** ![fadihl\_yaacob](https://avatars.discourse-cdn.com/v4/letter/f/df788c/32.png) [@fadihl\_yaacob](https://community.wowza.com/u/fadihl_yaacob)\
**Post date:** [July 25, 2018, 9:45am UTC](https://community.wowza.com/t/urgent-problem-with-wowza-4-and-geoip2/47961/3 "2018-07-25T09:45:02Z")

</div>

I have updated the wowza-geoip plugin to use GeoIP2 DB. However only tested with Wowza Streaming 3.6.4. I did not test with Wowza 4 [https://github.com/sdil/wowza-geoip2](https://github.com/sdil/wowza-geoip2)
