What exactly do you mean via VPN environment?
Is the Matomo server only reachable from the intranet and you use an VPN to connect to it?
In that case that is expected as the Matomo server only sees the internal IP that of course doesn’t contain any clues on where you are from (as you are from inside the network)
Yes, the server is reachable from the intranet and I use an VPN to connect it.
Ok,I understood that it is impossible with the default configuration because there are only internal ip’s but I have seen that there is a way to configure the internal ip’s to match them throw one location: with the plugin Intranet Geo Ip.