We have ipinfo at home or how to geolocate IPs in your CLI using latency
6 days ago
- #geolocation
- #networking
- #CLI
- A CLI tool was developed to geolocate IP addresses to countries, US states, and cities using latency data.
- The tool leverages Globalping's network of over 3000 probes to perform ping and traceroute measurements.
- VPN providers often fake IP geolocation data, making latency-based detection a more reliable method.
- The tool uses a multi-phase approach: detecting the continent first, then the country, and optionally the US state or city.
- Traceroute was chosen over ICMP ping due to network restrictions, analyzing the last hop's latency for accuracy.
- The tool is open-source and can be run with a simple command, supporting customization via parameters.
- Hosting a Globalping probe or donating can increase the number of available tests for more accurate results.