! Please help - Country location not showing Correct

Hello Team,

I hosted Matomo on premise server behind proxy and I also installed & enabled Geo IP 2 (PHP) to trace exact IP and location.

also I tried by doing below changes in config.ini file but not working for internal users.

proxy_client_headers[] = HTTP_X_FORWARDED_FOR
proxy_host_headers[] = HTTP_X_FORWARDED_HOST
proxy_client_headers[] = HTTP_CLIENT_IP

below added to don’t select country based on language select on system.

[Tracker]
enable_language_to_country_guess = 0

But still I am getting Proxy IP range – like for example - 172.28.0.0 for every user who access site from internally from company network and receive location US or UK for everyone.

But if User access from outside company network means publicly ( Internet ) data ( IP & location ) fetched correctly. But only for inside proxy - company users data comes wrong. Please help

Please Help.

Hi,

GeoIP databases obviously don’t have entries for all IP-addresses in your company network

You may want to take a look at this plugin which you can use to tell Matomo where your intranet users are located:
https://plugins.matomo.org/IntranetGeoIP

Thanks Lukas,

I configured InranetGeoIP but still no luck . same output i am getting.

do i need to do other change at Geolocation tab also ?

Hi,

I have never used the plugin before, I honestly I can’t help that much. Maybe ask the developer of the plugin.