Your IP address appears in different places depending on which one you need: the local address assigned by your router, or the public address your internet provider exposes to the world. On Windows, type ipconfig in Command Prompt; on macOS, check System Settings > Network; on iPhone or Android, open Wi-Fi settings and tap your connected network. Your public IP appears when you visit a site like ipinfo.io or search "what is my IP."

These are two distinct identifiers, and confusing them is the most common reason people look in the wrong place. This guide explains the mechanisms behind each, the edge cases that break simple instructions, and the practical steps that resolve real-world problems.

What an IP address actually is and how devices acquire one

An Internet Protocol address is a numeric label attached to a network interface so packets can be routed to and from it. IPv4 addresses are 32 bits long and written as four numbers from 0 to 255, such as 192.168.1.42. That space holds about 4.3 billion addresses, which ran out at the global allocation level in 2011. IPv6 uses 128 bits and is written as eight hexadecimal groups, providing roughly 3.4 x 10^38 addresses.

A device usually holds two kinds of address at once. The private address is assigned by your router's DHCP server from reserved ranges: 192.168.x.x, 10.x.x.x, or 172.16.x.x through 172.31.x.x. These ranges are defined in RFC 1918 and are never routed on the public internet. The public address is assigned by your internet service provider and is what servers actually see.

The mechanism matters because it explains why your "IP address" changes depending on where you look. Your router performs network address translation, or NAT, rewriting the private source address on every outbound packet to its own public address and tracking which internal device should receive the reply. From the internet's perspective, every device behind that router shares one identity.

A counterintuitive detail: the address shown on an IP-check website is usually your router's public address, not your computer's. Your computer may not have a public address at all. This is normal and is how most home and office networks operate.

Quantified context: how many addresses, how often they change

IPv4 exhaustion is not theoretical. The Internet Assigned Numbers Authority allocated its final five /8 blocks to regional registries in February 2011. Since then, carriers have relied on NAT, address recycling, and IPv6 to keep growing.

IPv6 adoption has climbed steadily but unevenly. Google's public measurement, which samples connections to its services, has shown global IPv6 availability above 40 percent in recent years, with wide country variation. That means a meaningful share of connections still travel over IPv4-only paths.

Public addresses change on several schedules. Residential connections often hold the same address for weeks or months, then rotate when the lease expires or the router reboots. Mobile carriers frequently use large-scale NAT, placing thousands of subscribers behind a small pool of public addresses, so your visible address can change between sessions or even mid-session. Business connections with static addressing keep the same address by contract.

Private address leases are shorter by default. Many home routers issue DHCP leases of 24 hours, renewing automatically while the device stays connected, so the private address rarely changes in practice despite the short lease term.

Edge cases that break the standard instructions

Standard instructions assume a simple network. Several common situations violate that assumption.

A VPN or proxy replaces your visible public address with the exit server's address. Every IP lookup site will report the VPN, not your provider. This is the intended function, but it confuses people checking whether their VPN works.

Carrier-grade NAT, sometimes called CGNAT, puts you behind your provider's NAT in addition to your own router. Your public address is shared with other subscribers, which breaks port forwarding and can cause odd behavior in online games and peer-to-peer applications.

Virtual machines and containers hold their own addresses on virtual interfaces that may not appear in the host's standard network settings. Docker, for example, creates bridge networks in the 172.17.x.x range by default.

Devices with both Wi-Fi and cellular active hold two private addresses and may route traffic through either. The address you find depends on which interface is currently carrying the connection.

Public Wi-Fi networks frequently isolate clients and assign addresses from unusual ranges, and captive portals can intercept lookups until you authenticate.

Common misconceptions, corrected

The biggest misconception is that an IP address identifies a person. It identifies a network endpoint at a moment in time. Providers log which subscriber held an address during a given window, which is why legal requests go to the ISP rather than to a website.

A second misconception is that hiding your IP makes you anonymous. Your browser fingerprint, cookies, account logins, and traffic patterns persist independently. An IP change alters one signal among many.

A third is that private addresses are secret or sensitive. They are neither, and they carry no routing meaning outside your local network.

Red-flag warnings worth heeding:

Never treat an IP lookup as a security scan; it reveals nothing about open ports or vulnerabilities. Do not assume a "static IP" claim from a hosting provider includes reverse DNS; verify separately. Treat any site demanding payment to "reveal your IP" as a scam; the information is free everywhere. Do not paste your public IP into public forums alongside account details; it narrows you to a provider and region. Remember that IP-based geolocation is approximate and can be wrong by hundreds of miles.

Comparison: where each address lives

Address type Typical range or source Where to find it Who sees it Changes when
Private IPv4 (home) 192.168.x.x, 10.x.x.x, 172.16-31.x.x OS network settings, router admin page Only your local network DHCP lease renewal, router reset
Public IPv4 (residential) Assigned by ISP IP lookup website, router status page Every server you contact Lease expiry, reconnect, provider rotation
Public IPv4 (CGNAT) Shared provider pool IP lookup website Servers see the shared address Provider policy, session changes
IPv6 global unicast 2000::/3 range OS network settings, lookup site Servers supporting IPv6 Prefix delegation renewal
Loopback 127.0.0.1 or ::1 Always present on the device Nothing external Never
VPN exit address Datacenter or provider range IP lookup site while connected Servers see the VPN VPN reconnect, server switch

Timeline: when each address type appears and changes

Stage What happens Address visible externally
Device boots Requests DHCP lease from router None yet
Lease granted Private address assigned, typically 24-hour term None yet
Router connects to ISP Public address obtained via DHCP or PPPoE Provider-assigned address
Normal browsing NAT translates outbound packets Router's public address
VPN connects Tunnel established to exit server VPN exit address
Lease or session expires Address may be renewed or rotated Possibly a new address
Router reboot Reconnects and may receive a different address New address, often within same pool
IPv6 enabled Device obtains global unicast address Both IPv4 and IPv6 addresses may appear

The reconciliation point: lease durations and rotation schedules are separate timers. A 24-hour DHCP lease renews quietly and usually keeps the same address, while provider-side rotation can change your public address at any time regardless of local lease state.

Practical actions with concrete steps

To find your private address on Windows, open Command Prompt and run ipconfig, then read the IPv4 Address line under your active adapter. On macOS, open System Settings > Network, select the active connection, and click Details. On Linux, run ip addr show and look for the inet line on the active interface.

To find your public address, visit any reputable lookup service or search "what is my IP." Compare results across two services; if they disagree, a VPN or proxy is likely active.

To find the router's address itself, check the default gateway listed in your OS network details, commonly 192.168.1.1 or 192.168.0.1, then open that address in a browser.

To verify a VPN is working, note your public address before connecting, connect, then check again. A changed address confirms the tunnel is carrying traffic.

To check IPv6 specifically, visit a test site such as test-ipv6.com. A score below 10/10 indicates partial or missing IPv6 connectivity, which is common and usually harmless.

If you need a stable public address for remote access, ask your provider about static addressing; residential plans often charge an additional monthly fee or reserve it for business tiers.

Limitations and what IP data cannot tell you

An IP address is a routing label, not a personal identifier, and it cannot confirm who is using a device. Geolocation databases map addresses to regions or cities with varying accuracy, and mobile and CGNAT addresses are especially imprecise. Address data also ages: reassignments mean a historical log may point to a different subscriber today.

Encryption protects content, not metadata. Your provider can still see which addresses you contact even over HTTPS. Conversely, a changed IP does not guarantee privacy against determined tracking.

Finally, the lookup tools themselves vary in accuracy and update frequency. Treat any single result as a snapshot rather than ground truth, and cross-check when the answer matters.