Location tracking not working when connected to corporate network

I installed matomo in my company on-prem. But when I integrated tracking code on my company’s internal website, it is always displaying the country name as “United States”. But I am checking it from india(Company Network).

If I connect to the external network it works fine. any idea why my location tracking not working inside the company network.

Hi,

Geolocation doesn’t work in internal networks as of course the database can’t know where your user with e.g. the IP 192.168.0.123` is sitting.

You can use Intranet Geo IP - Matomo Plugins Marketplace to assigne the IP addresses to locations to get correct results.