We have ipinfo at home or how to geolocate IPs in your CLI using latency

https://news.ycombinator.com/rss Hits: 3
Summary

TLDR: I made a CLI tool that can resolve an IP address to a country, US state and even a city. https://github.com/jimaek/geolocation-tool It works well and confirms ipinfo's findings. Recently, I read how ipinfo finally proved what most technical people assumed: VPN providers don't actually maintain a crazy amount of infrastructure in hundreds of countries. They simply fake the IP geolocation by intentionally providing wrong location data to ARIN, RIPE, and Geo DB providers via geofeeds. They achieved their results using a novel approach compared to other geo IP providers. Based on their blog and HackerNews comments, they built a large probe network and used it to trace and ping every (or most) IP addresses on the internet. This latency and hop data, most likely along with advanced algorithms and data cross-reference, provides a reliable way of correctly detecting the physical geolocation of an IP address, without relying on faked data available in public sources. This is a very interesting approach that makes total sense, and I'm sure their clients appreciate it and heavily rely on it. While I can't ping every single IP address on the internet from hundreds of locations just yet, I can do it to a limited subset using Globalping. So I decided to try it out and see if I can replicate their results and build a small tool to allow anyone to do the same. Globalping is an open-source, community-powered project that allows users to self-host container-based probes. These probes then become part of our public network, which allows anyone to use them to run network testing tools such as ping and traceroute. At the moment, the network has more than 3000 probes, which in theory should be plenty to geolocate almost any IP address down to a country and even a US state level. To automate and simplify this process, I made a little CLI tool using the globalping-ts library. My original idea was simple: Accept a single IP as input Ping it a few times per continent to select the cont...

First seen: 2026-01-31 11:40

Last seen: 2026-01-31 13:41