# Geolocate from IP

**URL:** <https://forum.mautic.org/t/geolocate-from-ip/26194>\
**Category:** General Discussion\
**Created:** [November 25, 2022, 9:11am UTC](https://forum.mautic.org/t/geolocate-from-ip/26194 "2022-11-25T09:11:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![xmontero](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/xmontero/32/7499_2.png) [@xmontero](https://forum.mautic.org/u/xmontero)\
**Post date:** [November 25, 2022, 9:11am UTC](https://forum.mautic.org/t/geolocate-from-ip/26194/1 "2022-11-25T09:11:06Z")

</div>

I’ve a form asking for the email address.

I put ads, I get leads. Imagine I generate 100 leads.

Then, to segment in function of the country I open every contact one by one, take the IP, put it on a geolocator online and read the country.

Is it possible to use Mautic to automatically mark contacts with the country calculated from the IP address?

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [December 7, 2022, 6:13am UTC](https://forum.mautic.org/t/geolocate-from-ip/26194/2 "2022-12-07T06:13:25Z")

</div>

Yes, that is what maxmind does.

> **[\[Solved\] Maxmind GeoLite2 & GeoIP Database Auto-Update | 2020](https://mauteam.org/mautic/mautic-admins/solved-maxmind-geolite2-database-not-updating/)**
>
> Maxmind has changed the method to update GeoLite2 & GeoIP databases, it now requires you to provide your credentials. See how to solve this on any Linux server.

---

<div class="post-metadata">

**Author:** ![xmontero](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/xmontero/32/7499_2.png) [@xmontero](https://forum.mautic.org/u/xmontero)\
**Post date:** [December 11, 2022, 10:59pm UTC](https://forum.mautic.org/t/geolocate-from-ip/26194/3 "2022-12-11T22:59:30Z")

</div>

Thanks, @joeyk

The thing is that the mautic installation I was asking for runs on a PHP hosting that does not provide ssh access, so it’s not possible to automatically do all those things, at least directly.

I was expecting mautic to handle the new MaxMind download method from the interface.

I will re-think the download/setup strategy.

Thnx.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [December 12, 2022, 7:40am UTC](https://forum.mautic.org/t/geolocate-from-ip/26194/4 "2022-12-12T07:40:56Z")

</div>

Ok, understood.  
Just a heads up: if you don’t have ssh, you’ll have issues with upgrades.  
(I know this is not ideal, just letting you know.)  
Joey

---

<div class="post-metadata">

**Author:** ![xmontero](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/xmontero/32/7499_2.png) [@xmontero](https://forum.mautic.org/u/xmontero)\
**Post date:** [December 12, 2022, 12:03pm UTC](https://forum.mautic.org/t/geolocate-from-ip/26194/5 "2022-12-12T12:03:01Z")

</div>

Thanks for the heads up!
