<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/we-have-ipinfo-at-home-or-how-to-geolocate-ips-in-your-cli-using-latency-lmjbqeqot" -->

---
title: We have ipinfo at home or how to geolocate IPs in your...
description: A CLI tool was built to geolocate IP addresses using latency measurements from a distributed probe network. The tool uses a multi-phase approach: detecting...
canonical: https://daily.dev/posts/we-have-ipinfo-at-home-or-how-to-geolocate-ips-in-your-cli-using-latency-lmjbqeqot
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: We have ipinfo at home or how to geolocate IPs in your CLI using latency | daily.dev
og:description: A CLI tool was built to geolocate IP addresses using latency measurements from a distributed probe network. The tool uses a multi-phase approach: detecting...
og:url: https://daily.dev/posts/we-have-ipinfo-at-home-or-how-to-geolocate-ips-in-your-cli-using-latency-lmjbqeqot
og:image: https://api.daily.dev/og/posts/LmjBqeQoT.png
og:image:alt: We have ipinfo at home or how to geolocate IPs in your CLI using latency
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

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

**[Hacker News](https://daily.dev/sources/hn)** · 9 min read · 1 upvotes · 0 comments

## Summary

A CLI tool was built to geolocate IP addresses using latency measurements from a distributed probe network. The tool uses a multi-phase approach: detecting continent first with 5 probes per continent, then narrowing down to country with 50 probes, followed by US state detection, and finally city-level resolution. It leverages Globalping's network of 3000+ community-hosted probes and uses traceroute instead of ping to avoid ICMP blocking issues. The approach successfully replicates commercial geolocation services' results, correctly identifying VPN server locations that providers misrepresent in public databases. The tool is open source and can run unauthenticated with 50 probes per measurement, though accuracy improves with more probes.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.globalping.io/we-have-ipinfo-at-home-or-how-to-geolocate-ips-in-your-cli-using-latency/>

---

Tags: [#cli](https://daily.dev/tags/cli), [#networking](https://daily.dev/tags/networking), [#open-source](https://daily.dev/tags/open-source), [#vpn](https://daily.dev/tags/vpn)

[View this post on daily.dev](https://daily.dev/posts/we-have-ipinfo-at-home-or-how-to-geolocate-ips-in-your-cli-using-latency-lmjbqeqot)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"We have ipinfo at home or how to geolocate IPs in your CLI using latency","url":"https://daily.dev/posts/we-have-ipinfo-at-home-or-how-to-geolocate-ips-in-your-cli-using-latency-lmjbqeqot","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/we-have-ipinfo-at-home-or-how-to-geolocate-ips-in-your-cli-using-latency-lmjbqeqot"},"datePublished":"2026-01-31T14:47:52.382Z","dateModified":"2026-03-15T02:35:39.529Z","description":"A CLI tool was built to geolocate IP addresses using latency measurements from a distributed probe network. The tool uses a multi-phase approach: detecting...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6291f5a9653cff1f2f9d74111bc6e952?_a=AQAEulh","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6291f5a9653cff1f2f9d74111bc6e952?_a=AQAEulh","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/we-have-ipinfo-at-home-or-how-to-geolocate-ips-in-your-cli-using-latency-lmjbqeqot","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"cli,networking,open-source,vpn","timeRequired":"PT9M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"We have ipinfo at home or how to geolocate IPs in your CLI using latency"}]}
```

