| Description | 
 The article describes the steps to resolve the issue of determining the exact location of the VPN users.  | 
| Scope | 
 FortiGate.  | 
| Solution | 
 The VPN location map shows the country from where the VPN user is connected, but it does not show the exact location. When trying from the CLI to find the VPN user location, it gives the following error: 
 diagnose geoip geoip-query xxx.xxx.xx.xx Error while getting geoip info (err:-4) 
 xxx.xxx.xx.xx is the VPN user public IP. 
 The error 'Error while getting geoip info (err:-4)' means the system cannot contact the required GeoIP database due to a network or DNS issue, or a failed update. 
 To resolve this issue, follow the steps defined below: 
 
 
 execute ping service.fortiguard.net execute ping update.fortiguard.net execute ping guard.fortinet.net execute ping globalgip.fortinet.net 
 To further troubleshoot FortiGuard connectivity issues, refer to Troubleshooting Tip: Unable to connect to FortiGuard servers. 
 
 
 diagnose autoupdate versions | grep -A7 Geo 
 To update the GeoIP database, run the following command: 
 execute update-geo-ip  
If the database has not been updated, please refer to the document below: How to update the GeoIP database  
 
 config system fortiguard 
 After following the above steps, the FortiGate should be able to determine the exact location of the connected VPN user. 
 
 CLI: 
 diagnose geoip geoip-query 174.116.88.73 
IP: xxx.xxx.xx.xx { "city":{ "geoname_id":8581623, "names":{ "en":"Ottawa" } }, "continent":{ "code":"NA", "names":{ "en":"North America" } }, "country":{ "iso_code":"CA", "names":{ "en":"Canada" } }, "subdivisions":[ { "iso_code":"ON", "names":{ "en":"Ontario" } } ], "location":{ "latitude":45.421532, "longitude":-75.697189, "time_zone":"America\/Toronto" }, "postal":{ "code":"K2P" } }  | 
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.