Network & Connection Tests•Free Online Tool

What Is My IP Address? Check Public IPv4, IPv6 & Location

Find your public IPv4 and IPv6 address, ISP provider, ASN routing details, and city location instantly with our free online IP lookup and WebRTC leak tester.

100% Private (In-Browser)
⚡

What Is My IP Address? Check Public IPv4, IPv6 & Location

Press Start below to begin instant client-side testing. No data leaves your machine.

AdvertisementReserved layout space (Zero CLS guarantee)

Understanding Your Public IP Address Architecture

Every time your laptop, desktop, smartphone, or smart home peripheral accesses the global internet, it communicates through a unique digital identifier known as an Internet Protocol (IP) address. In the context of computer networking, IP addresses function as the fundamental routing backbone of the Internet Protocol Suite (TCP/IP). When you enter a web address into your browser navigation bar, Domain Name System (DNS) servers translate human-readable domain names into numerical IP addresses, routing packets across physical undersea fiber-optic lines, regional Internet Exchange Points (IXPs), and local edge networks.

Our client-side What Is My IP Address diagnostic portal directly interfaces with Cloudflare edge infrastructure to instantly resolve your external public WAN address. In addition to delivering clean, lightning-fast address identification, this utility interrogates Autonomous System Numbers (ASNs), geographic routing coordinates, internet service provider infrastructure, and browser WebRTC interfaces to detect covert IP address leaks. For deeper connection diagnostics, pair this tool with our Ping Test to audit round-trip latency, our Internet Speed Test to measure throughput, and our PC Specs Checker to review your system environment.

IPv4 vs. IPv6: The Global Addressing Transition

The internet currently operates on a dual-stack configuration transitioning between two major IP standards:

  1. IPv4 (Internet Protocol Version 4): Standardized in 1981 by DARPA and defined in RFC 791, IPv4 uses a 32-bit address space represented as four decimal numbers separated by periods (dotted-quad notation, ranging from 0.0.0.0 to 255.255.255.255). While IPv4 yields a theoretical total of 4,294,967,296 addresses, massive global connectivity demands—fueled by billions of smartphones, IoT devices, laptops, and cloud compute nodes—exhausted the official IPv4 address pool managed by IANA (Internet Assigned Numbers Authority) in 2011.
  2. IPv6 (Internet Protocol Version 6): Standardized in RFC 8200, IPv6 solves global address depletion by deploying a vast 128-bit address space. Formatted as eight groups of four hexadecimal digits separated by colons (for instance, 2606:4700:4700::1111), IPv6 provides roughly 3.4 times 10^{38} distinct addresses—sufficient to assign trillions of addresses to every square millimeter of the Earth’s surface. In addition to vast capacity, native IPv6 simplifies packet processing by removing checksum recalculations at intermediate routers and eliminates Network Address Translation (NAT) overhead.
+-------------------------------------------------------------------------+
|                  TYPICAL RESIDENTIAL NETWORK IP TOPOLOGY                 |
+-------------------------------------------------------------------------+
|                                                                         |
|  [Laptop]  192.168.1.101 (Private IP)                                   |
|     |                                                                   |
|  [Phone]   192.168.1.102 (Private IP)                                   |
|     |                                                                   |
|     v                                                                   |
|  [Home Wi-Fi Router / NAT Gateway]                                      |
|     LAN Interface: 192.168.1.1 (Gateway)                                |
|     WAN Interface: 203.0.113.84 (Public Dynamic IPv4)                   |
|     IPv6 Prefix:   2001:db8:85a3::/64 (Delegated Global Prefix)         |
|     |                                                                   |
|     v (Fiber / Cable / 5G Link)                                         |
|  [ISP Edge Aggregator / BGP Autonomous System (ASN)]                    |
|     |                                                                   |
|     v                                                                   |
|  [Global Internet / Cloudflare Edge / Target Web Server]                 |
|                                                                         |
+-------------------------------------------------------------------------+

Private IP vs. Public IP: How Network Address Translation Works

Many everyday computer users are confused when they look at their operating system’s local network settings and see an address like 192.168.1.15, while an online tool like LaptopXray displays an address like 198.51.100.72. This distinction represents the boundary between Private IP Address Space and Public IP Address Space:

  • Private IP Addresses (RFC 1918): Three designated ranges are reserved exclusively for private local area networks (LANs) and are never routed across the public internet:
    • Class A: 10.0.0.0 to 10.255.255.255 (Subnet mask 255.0.0.0 or /8)
    • Class B: 172.16.0.0 to 172.31.255.255 (Subnet mask 255.240.0.0 or /12)
    • Class C: 192.168.0.0 to 192.168.255.255 (Subnet mask 255.255.0.0 or /16)
  • Network Address Translation (NAT): Because multiple personal computers, gaming consoles, smart TVs, and mobile phones share a single residential broadband connection, your home router acts as a translator. When your laptop requests data from a remote server, the router’s NAT engine replaces the laptop’s private source IP (192.168.1.15) with the router’s single public WAN IP (198.51.100.72) and assigns a unique temporary TCP/UDP source port. When response packets return from the web, the router inspects its stateful NAT translation table and forwards the incoming data back to your specific internal laptop.

Carrier-Grade NAT (CGNAT) and RFC 6598

In modern telecommunications, internet service providers facing scarce IPv4 allocations frequently implement Carrier-Grade NAT (CGNAT), also known as large-scale NAT (LSN). Under CGNAT, an entire apartment complex, residential neighborhood, or mobile tower sector shares a pool of public IPv4 addresses managed upstream by the ISP core network.

If your router’s WAN IP falls within the special shared address prefix 100.64.0.0/10 (from 100.64.0.0 to 100.127.255.255), your connection is subject to CGNAT. While standard web browsing, streaming video, and social media work normally under CGNAT, several advanced networking workflows become restricted:

  • Inbound port forwarding for hosting personal Minecraft or web servers is prevented because you do not possess an exclusive public IP.
  • Peer-to-peer multiplayer gaming connections may experience “Strict NAT” or “Type 3 NAT” alerts on PlayStation, Xbox, and Nintendo Switch consoles.
  • VPN tunnels relying on non-standard NAT traversal protocols can experience intermittent handshake drops.

WebRTC IP Leaks: The Silent VPN Vulnerability

A critical feature built into our diagnostic inspector is real-time auditing for WebRTC IP leaks. WebRTC (Web Real-Time Communication) is an W3C web standard integrated natively into modern web browsers (including Google Chrome, Mozilla Firefox, Microsoft Edge, and Apple Safari). It empowers web applications—such as Discord, Zoom web client, Google Meet, and browser-based VoIP services—to establish direct peer-to-peer voice, video, and data channels without requiring third-party browser plugins or desktop software installations.

To facilitate fast, zero-configuration peer connections between two machines located behind strict firewalls and NAT routers, WebRTC uses the Interactive Connectivity Establishment (ICE) framework, supported by STUN (Session Traversal Utilities for NAT) and TURN (Traversal Using Relays around NAT) servers:

[Laptop behind VPN] 
      |
      |--- 1. Normal HTTP/HTTPS Traffic ---> [VPN Tunnel Interface (Tun0)] ---> [Remote VPN Server] ---> Internet
      |
      +--- 2. Low-level WebRTC STUN Query -> [Underlying Physical Wi-Fi/NIC] -> [Exposes Real ISP IP!]

During the ICE candidate gathering phase, your browser queries designated STUN servers to map out all viable network communication pathways. Crucially, the browser interrogates:

  1. Local network host candidates (revealing your private LAN subnet address, such as 192.168.1.45 or unique link-local IPv6 identifiers).
  2. Server reflexive candidates (revealing the external public IP address observed by the STUN server).

If your commercial VPN client operates solely at the HTTP proxy level, or if its desktop network driver fails to intercept low-level UDP socket queries initiated by the browser’s WebRTC subsystem, the STUN query bypasses the encrypted VPN tunnel. Consequently, any website hosting a tiny 10-line JavaScript script can discover your true residential public IP address and ISP identity, entirely defeating the anonymity provided by your paid VPN subscription. Our tool automatically audits WebRTC candidates client-side to verify whether your real identity is shielded.


Autonomous Systems (ASNs) and Global BGP Routing

When you inspect your public IP address using LaptopXray, you will observe an Autonomous System Number (ASN), formatted as AS followed by an integer (for example, AS15169 for Google, AS13335 for Cloudflare, or AS7922 for Comcast Cable).

The global internet is not a single monolithic network; rather, it is a vast “network of networks”—a cooperative federation of tens of thousands of independent administrative routing domains known as Autonomous Systems (AS):

  • Each Autonomous System represents a large network or group of networks governed by a single administrative organization (such as an ISP, a university backbone, a global cloud provider, or a government agency) that presents a clearly defined routing policy to the rest of the world.
  • These autonomous entities exchange reachability information using the Border Gateway Protocol (BGP). When your laptop transmits data packets to a destination halfway around the globe, BGP routers negotiate dynamic path vectors, routing your packets across intermediate transit providers (Tier-1 carriers such as Lumen, Telia, NTT, and Cogent) until they reach the destination Autonomous System.

Understanding your ASN is essential for diagnosing routing anomalies, peering congestion, and latency bottlenecks. For instance, if your ISP has poor peering agreements with major content delivery networks (CDNs), your packets may take circuitous geographical paths, elevating ping times during online gaming or video conferencing.


Technical Troubleshooting: Dynamic IP Leases, Geo-Location and Security

Why IP Geolocation Is Not GPS Tracking

A frequent misconception among laptop owners is that public IP geolocation provides pinpoint physical tracking down to a specific apartment or street corner. In reality, IP geolocation relies on commercial mapping databases (such as MaxMind, DB-IP, and IPinfo) that correlate allocated IP subnets with registered corporate data centers, ISP points of presence (PoPs), and metropolitan routing switches.

Depending on how your internet provider balances its routing topology:

  • Your IP address may resolve to a major municipal center located 50 to 150 miles away from your actual physical town.
  • Mobile 4G/5G cellular hotspots frequently report IP locations corresponding to central regional mobile switching centers (MSCs) rather than the cell tower serving your phone.
  • IP geolocation should never be used as a high-precision security metric; it provides general metropolitan and national routing approximations.

Best Practices for Securing Your Public IP

Your public IP address is broadcast to every web server, game lobby, and peer-to-peer torrent peer you connect with. To maintain robust digital hygiene and protect your local devices:

  1. Never Forward Risky Inbound Ports: Avoid opening ports 3389 (Windows Remote Desktop), 22 (SSH), 23 (Telnet), or 445 (SMB) on your home router directly to the open internet. Automated botnets continuously sweep the IPv4 address space searching for exposed administrative interfaces.
  2. Enable Router Automated Security Updates: Ensure your gateway router automatically installs security patches to defend against known remote code execution (RCE) vulnerabilities in embedded Linux network stacks.
  3. Audit WebRTC Browser Settings: If you require strict anonymity, disable WebRTC in Firefox by setting media.peerconnection.enabled to false in about:config, or install reputable browser extensions that restrict WebRTC ICE candidate interfaces in Chromium-based browsers.
  4. Deploy Secure DNS Over HTTPS (DoH): Prevent local network eavesdroppers and ISP marketing trackers from logging domain names associated with your public IP address by enabling encrypted DNS queries directly within Windows 11, macOS, or your web browser.
AdvertisementReserved layout space (Zero CLS guarantee)

Frequently Asked Questions About what is my ip

What is a public IP address and why does every device have one?

A public Internet Protocol (IP) address is a globally unique numerical identifier assigned to your network connection by your Internet Service Provider (ISP). Just as a physical home address directs postal mail, an IP address allows packets across the global internet mesh to locate your router. Devices inside your local network share this single public IP through Network Address Translation (NAT), which maps internal private IP ranges (such as 192.168.1.X or 10.0.0.X) to your public WAN facing gateway.

What is the primary difference between IPv4 and IPv6 addresses?

IPv4 uses a 32-bit numerical addressing architecture formatted as four 8-bit octets separated by dots (such as 198.51.100.45), allowing for roughly 4.29 billion unique addresses worldwide. Because the global supply of IPv4 addresses is virtually exhausted, IPv6 was introduced with a 128-bit hexadecimal structure (such as 2001:0db8:85a3:0000:0000:8a2e:0370:7334), providing approximately 340 undecillion addresses. IPv6 eliminates the need for complex carrier-grade NAT, streamlines routing headers, and provides end-to-end encryption capabilities.

What is Carrier-Grade NAT (CGNAT) and how does it affect my connection?

Carrier-Grade NAT (CGNAT or Large-Scale NAT) is a networking technique used by ISPs—especially fiber, cable, and mobile cellular providers—to share a single public IPv4 address across dozens or hundreds of distinct customer households. If your router's WAN IP begins with 100.64.0.0 through 100.127.255.255 (RFC 6598 address space), your ISP is utilizing CGNAT. This prevents inbound port forwarding, complicates hosting local game servers or self-hosted media arrays, and can occasionally cause false-positive IP bans on shared gaming platforms.

How does a WebRTC leak expose my real IP address through a VPN?

WebRTC (Web Real-Time Communication) is an open web standard enabling direct browser-to-browser audio, video, and data streaming without third-party plugins. To establish peer-to-peer connections between clients separated by firewalls, WebRTC uses Session Traversal Utilities for NAT (STUN) servers. During STUN binding requests, the browser queries external servers to discover all accessible candidate addresses. If your VPN software does not block or route these low-level STUN requests, your real ISP IP or internal LAN address can be silently exposed to client scripts even when your general browser HTTP traffic is tunneling through a remote proxy.

Why does the geo-location of my IP address not match my physical city?

IP geolocation databases (such as MaxMind GeoIP, IP2Location, and Cloudflare edge geolocation) do not track physical GPS coordinates. Instead, they associate Autonomous System IP blocks with central ISP data centers, regional routing hubs, or corporate headquarters. If your regional internet provider routes fiber traffic through a central exchange node located in an adjacent major metropolitan center 100 miles away, geolocation engines will resolve your IP to that central routing facility rather than your precise street address.

Can someone hack my laptop or home router if they know my public IP address?

Knowing your public IP address alone does not grant an attacker direct access to your computer. Modern consumer routers deploy hardware firewalls that discard unsolicited inbound packets by default. However, a malicious actor who discovers your public IP could attempt Distributed Denial of Service (DDoS) packet floods to overload your internet bandwidth, or port scan your router looking for unpatched firmware vulnerabilities and exposed management ports (such as Telnet port 23 or remote web config port 8080). Keeping router firmware updated and disabling remote WAN management eliminates these threat vectors.

How can I change my public IP address if it gets blocked or throttled?

Most residential internet connections utilize dynamic IP addressing via DHCP leases issued by your ISP's broadband access servers. To change your public IP, you can power down your modem and router for 15 to 30 minutes to release the current DHCP lease and request a fresh assignment from your ISP pool. If your ISP binds leases to MAC addresses, cloning a new router MAC address triggers an immediate lease renewal. Alternatively, deploying a reputable Virtual Private Network (VPN) or connecting via mobile cellular hotspot provides an instant alternative public IP.

Is my public IP address visible to every website I visit online?

Yes. Every HTTP and HTTPS transaction requires a bidirectional TCP/IP connection. In order for web servers to send requested HTML pages, images, and video streams back to your browser, your public IP must be contained within the IP packet header's source address field. While websites cannot view your private files, webcam, or hardware peripherals simply from your IP address, they can log your visits, infer your approximate metropolitan area, and identify your internet provider organization.

Run complementary component checks from the Network & Speed Tests category.

View all Network & Speed Tests →
VJ
Vishal JethwaniVerified Author

Hardware Diagnostic Researcher • Gujarat, India

Last Reviewed & Updated:
Review Cycle: 2026 Hardware Benchmarks
Tested on:Chrome 130+, Edge 130+, Firefox 132+, Safari 18+ (macOS, Windows 11)