Codroit Logo
  • Home
  • About
  • Services
  • Portfolio
  • Careers
  • Contact
  1. Blogs
  2. Navigating the Web's GPS: A Deep Dive into IPv4, IPv6, and City Tracking
Cyber Security 2026-05-18

Navigating the Web's GPS: A Deep Dive into IPv4, IPv6, and City Tracking

Every time you load a website, stream a movie, or use a navigation app, a complex web of invisible numbers is hard at work. These numbers—IP addresses—are the fundamental building blocks of internet communication. But as the internet has exploded in size, the systems governing these addresses have had to evolve. Throw in the ability to track physical locations based on these digital addresses, and you have a fascinating intersection of networking and geography.

Kunal

Author

Navigating the Web's GPS: A Deep Dive into IPv4, IPv6, and City Tracking

The Foundation: What is an IP Address?

Think of an IP (Internet Protocol) address as a digital mailing address for your device. Just as a postal worker needs your street address to deliver a package, the internet needs your IP address to deliver data. Whether it is a smartphone, a smart fridge, or a massive server farm, every device connected to the internet requires a unique identifier. This ensures that when you request to load a video, the data packets are routed specifically to your screen and not your neighbor's.

The Legacy System: The Reign of IPv4

For decades, the internet ran almost exclusively on Internet Protocol version 4 (IPv4). Created in the early 1980s, an IPv4 address looks like a sequence of four numbers separated by periods (e.g., 192.168.1.1).

  • The Scale: IPv4 uses a 32-bit format, allowing for approximately 4.3 billion unique addresses.
  • The Problem: In 1983, 4.3 billion seemed like an infinite supply. Fast forward to today, with over 8 billion people on Earth—many owning multiple connected devices—and we have officially run out of new IPv4 addresses.
  • The Band-Aid: To delay the inevitable, engineers developed Network Address Translation (NAT). NAT allows multiple devices on a private network (like your home Wi-Fi) to share a single public IPv4 address, effectively stretching the limited supply.

The Successor: Enter IPv6

To solve the address shortage permanently, engineers developed Internet Protocol version 6 (IPv6). It is the modern standard designed to future-proof the web.

  • The Format: Instead of 32 bits, IPv6 uses a massive 128-bit address space. It looks like a long string of alphanumeric characters separated by colons (e.g., 2001:0db8:85a3:0000:0000:8a2e:0370:7334).
  • The Capacity: IPv6 provides roughly 340 undecillion unique addresses (that is, 340 followed by 36 zeros). To put that into perspective, there are enough IPv6 addresses to assign trillions of them to every single human on Earth, with plenty left over for every grain of sand on the planet.
  • The Upgrades: Beyond sheer volume, IPv6 offers more efficient routing, simplified network configuration (devices can auto-configure their addresses), and removes the need for clunky NAT workarounds. However, transitioning the entire globe from IPv4 to IPv6 is complex and ongoing, meaning both protocols currently operate side-by-side.

The Geography: How City Tracking Works

Whenever you visit a website and see a localized weather forecast, or when an ad pops up for a nearby restaurant, city tracking (geolocation) is at play. But how does a string of numbers translate to a physical city?

  • IP Registries: Regional Internet Registries (RIRs) distribute blocks of IP addresses to Internet Service Providers (ISPs). These global databases record which ISP owns which block and the general geographical region where they are deployed.
  • Geolocation Databases: Third-party companies constantly aggregate data from these registries, combine it with user-submitted data, Wi-Fi network mapping, and router telemetry, and build massive geolocation databases.
  • The Mechanism: When you connect to a site, the server references your incoming IP address against these commercial databases to estimate your location—usually accurate down to a city or zip code level.

The Intersection: Geolocation in an IPv6 World

City tracking works reliably well with IPv4 because the databases have had decades to meticulously map out the 4.3 billion addresses. However, tracking accuracy faces new dynamics with the rollout of IPv6.

  • Vastness vs. Precision: Because ISPs are given impossibly large blocks of IPv6 addresses (a single home user might be assigned a block larger than the entire IPv4 internet), keeping geolocation databases perfectly updated is mathematically daunting.
  • Privacy Implications: IPv6 includes features like "Privacy Extensions," which regularly scramble the latter half of a user's IP address to prevent long-term tracking of a specific device. While the first half of the address will still reveal the general city or ISP, pinpointing a specific user's hardware over time becomes much more difficult.
  • The Current Reality: For now, IPv4 remains the gold standard for high-accuracy IP geolocation. But as the world pivots to IPv6, geolocation providers are developing new, smarter algorithms to map the expanding digital universe.

The shift from IPv4 to IPv6 is one of the most monumental, yet invisible, infrastructure upgrades in human history. It guarantees that our rapidly expanding digital ecosystem will never run out of room to grow. Meanwhile, as the technical architecture of the web changes, the business of city tracking is evolving alongside it, learning to balance the need for localized digital experiences with the inherent privacy features of the next-generation internet.


Enjoyed this article?

Share it with your network and help spread the knowledge.

Twitter LinkedIn Facebook
Back to All Blogs
Codroit Logo

We Don't Just Build Software. We Build Brands.
Your growth is our mission — powered by AI, driven by creativity, and built to last.

Company
  • About Us
  • Portfolio
  • Services
  • Careers
  • Blogs
  • Contact
Get in Touch

Ahmedabad, India

info@codroit.in

+91 84909 46729

© Codroit. All rights reserved.