# Issues with GeopIP resolution

**URL:** <https://discuss.elastic.co/t/issues-with-geopip-resolution/251192>\
**Category:** Elasticsearch\
**Created:** [October 6, 2020, 10:29pm UTC](https://discuss.elastic.co/t/issues-with-geopip-resolution/251192 "2020-10-06T22:29:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roman\_Kournjaev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roman_kournjaev/32/2552_2.png) [@Roman\_Kournjaev](https://discuss.elastic.co/u/Roman_Kournjaev)\
**Post date:** [October 6, 2020, 10:29pm UTC](https://discuss.elastic.co/t/issues-with-geopip-resolution/251192/1 "2020-10-06T22:29:33Z")

</div>

I have issues with GeoIP resolution

I have a Google Cloud IP address that resolves in Elasticsearch to

```auto
    "geo" : {
      "continent_name" : "North America",
      "country_iso_code" : "US",
      "location" : {
        "lon" : -97.822,
        "lat" : 37.751
      }
    },
    "host" : {
      "external_ip" : "34.87.88.118"
    }

```

But that address resolves to Singapore in every other IP lookup

Even in maxMind db demo

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/9/79cc7bc36f9270212a63f7cb978564c7934b8134.png)

which should be used by default in ES

es version : 7.9.2

---

<div class="post-metadata">

**Author:** ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)\
**Post date:** [October 7, 2020, 1:28am UTC](https://discuss.elastic.co/t/issues-with-geopip-resolution/251192/2 "2020-10-07T01:28:35Z")

</div>

[whois.arin.net](http://whois.arin.net) says US

---

<div class="post-metadata">

**Author:** ![Roman\_Kournjaev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roman_kournjaev/32/2552_2.png) [@Roman\_Kournjaev](https://discuss.elastic.co/u/Roman_Kournjaev)\
**Post date:** [October 7, 2020, 3:25am UTC](https://discuss.elastic.co/t/issues-with-geopip-resolution/251192/3 "2020-10-07T03:25:35Z")

</div>

> [@Roman\_Kournjaev](#):
>
> `34.87.88.118`

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/4/a4831aa3ac6f6b4184c46f053b7ed2c0f1e1b646.png)

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [October 7, 2020, 5:41am UTC](https://discuss.elastic.co/t/issues-with-geopip-resolution/251192/4 "2020-10-07T05:41:08Z")

</div>

I believe the Elastic Stack bundles the free [GeoLite2 database](https://dev.maxmind.com/geoip/geoip2/geolite2/), which is not as accurate as the full commercial version they provide. I would expect the latter one to power their demo website. If the accuracy is not sufficient I believe you can license the commercial version from MaxMind and use this instead.

---

<div class="post-metadata">

**Author:** ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)\
**Post date:** [October 7, 2020, 12:57pm UTC](https://discuss.elastic.co/t/issues-with-geopip-resolution/251192/5 "2020-10-07T12:57:27Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/c/5/c5163d3b5f6680843ec4f175cb168c10f5b79a9d.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 4, 2020, 12:57pm UTC](https://discuss.elastic.co/t/issues-with-geopip-resolution/251192/6 "2020-11-04T12:57:28Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
