• Catalog
  • Blog
  • Tor Relay
  • Jabber
  • Secret Notes
  • Temp Mail
  • Get Tor Browser
  • Cybersecurity
    Time to read: 18 min.
    Public vs Private IP address

    A public IP address is the globally routable number your internet provider assigns to your connection, while a private IP address only functions inside your own local network. That single distinction explains almost everything about how the internet directs traffic, why a household of phones, laptops and smart TVs can share a single address, and exactly which details about you are visible to the websites you visit.

    What an IP Address Actually Does

    Every device that talks on a network needs a way for others to find it. An Internet Protocol address serves that purpose: it is a numeric label attached to a device, used to route packets from sender to receiver across networks. Think of it as a return address combined with a building number — routers read the destination embedded in every packet and forward it one hop closer to its target until it arrives.

    Today there are two versions in use. IPv4, introduced in 1983, uses 32 bits and produces dotted-quad addresses such as 203.0.113.10, giving roughly 4.3 billion possible combinations. That sounded generous in the 1980s but ran out quickly as the web exploded, which is why IPv6 was created. IPv6 uses 128 bits — about 340 undecillion addresses — written in hexadecimal groups separated by colons, such as 2001:db8::1.

    The important point for everyday users is that being assigned an IP is not the same as being reachable. A device can hold an address yet still be invisible to the wider internet, because reachability depends on which kind of address it holds and how the network around it is configured.

    Public IP Addresses: Your Routable Identity

    A public IP is an address that is unique across the entire internet and can be routed from any point on the global network back to your connection. When your browser requests a page, the server sees this address — it is what websites, apps and services use to deliver responses to you.

    Internet service providers hand out public addresses in two main ways. Most residential customers receive a dynamic address: your ISP assigns one temporarily and rotates it periodically, often when your router reconnects or after days or weeks. Dynamic assignment lets providers recycle a limited pool of addresses among millions of subscribers. Businesses and servers that need a stable identity — web hosts, mail servers, anything where other machines must always find the same endpoint — typically pay for a static public address that never changes.

    Because a public address is visible to everything you contact online, it carries real information. Websites can log it, geolocation databases can narrow it to a city or neighborhood, and an attacker who knows your address has one more handle on your connection. This is precisely why defensive tools like firewalls, router NAT and VPNs exist.

    Private IP Addresses and the Reserved Ranges

    A private IP belongs to a device inside a local network — your home, office or campus — and works only within that enclosed space. Your laptop, phone, tablet and smart speaker each hold a private address that lets them talk to the router and to each other, but those addresses mean nothing outside your walls.

    To make this possible, standards bodies reserved specific ranges that routers are forbidden from forwarding onto the public internet. For IPv4 these are 10.0.0.0 through 10.255.255.255, 172.16.0.0 through 172.31.255.255, and 192.168.0.0 through 192.168.255.255. IPv6 has its own private space under the unique-local prefix fc00::/7, plus link-local addresses beginning with fe80::.

    The practical consequence is a neat separation of concerns: your devices can chatter freely among themselves using private addresses, while only the router — which holds the public address — ever speaks to the outside world. Nobody on the internet can dial 192.168.1.20 and reach your laptop, because millions of homes use that exact address simultaneously. The private range is deliberately ambiguous on purpose.

    How NAT Bridges the Two Worlds

    If every device on your home network had its own public address, ISPs would run out of addresses almost immediately, and every printer and light bulb would be an attack surface. Network Address Translation, or NAT, solves both problems at once.

    NAT lives in your router. When your laptop at 192.168.1.50 requests a website, the router rewrites the source address on the outgoing packet to its own public IP before sending it onto the internet. When the response comes back, the router uses a translation table to remember which internal device asked for it and delivers the packet to the right machine. To the website, the entire household appears as a single device with a single address.

    This is why checking "what is my IP" in a browser shows your public address rather than the 192.168.x.x number in your network settings — the query travels through NAT, so the site only ever sees the outside identity. NAT also quietly improves security: unsolicited inbound connections generally cannot reach your private devices, because there is no translation entry for traffic you did not initiate. The firewall behavior you get for free from NAT is sometimes called NAT's side effect of hiding internal hosts.

    Dynamic Versus Static Assignment

    Whether your public address changes depends on what kind of customer you are. Residential broadband almost universally uses dynamic assignment through protocols like DHCP and PPPoE, so your ISP can reclaim and reissue addresses as subscribers come and go. If your public IP changes overnight, nothing is wrong — it is normal recycling.

    Static public addresses matter for services that others must locate reliably: a company website, a mail server, a VPN endpoint, a game server. They are usually a paid add-on. Some providers also offer semi-static arrangements, where an address is sticky for weeks or months but can still change.

    The same dynamic-versus-static split exists on the private side, but it is controlled by your router rather than your ISP. Your router's DHCP server hands private addresses to devices as they join, typically leasing them for hours or days. Devices keep the same address most of the time, but a reboot or lease expiry can shuffle the numbers — which is why printers sometimes need reconfiguring after router updates.

    IPv6 Changes the Private Address Picture

    IPv4's address exhaustion pushed the world toward IPv6, and the two coexist today. Most modern networks run dual-stack, meaning devices hold both an IPv4 and an IPv6 address and choose whichever works for a given connection.

    Under IPv6, every device is typically given a publicly routable address directly — there are so many addresses that NAT is no longer necessary for basic connectivity. Privacy extensions (temporary addresses that rotate) are commonly enabled by default to prevent tracking through a stable identifier. Your provider may also delegate a whole prefix of addresses to your router, which then assigns one to each device.

    For the private-versus-public distinction, the mental model still holds: unique-local fc00::/7 addresses stay inside your network, while global unicast addresses like 2001:... are routable worldwide. But the boundary is blurrier than under IPv4, because a device can legitimately hold a global address while still sitting safely behind a firewall. Reachability, not the address type alone, determines exposure.

    Finding Your Public and Private Addresses

    Checking your private address is straightforward on any device. On Windows, open Command Prompt and run ipconfig — look for "IPv4 Address" under your active adapter. On macOS, go to System Settings, then Network, and read the address shown for your connection. On Linux, ip addr or ifconfig lists all interfaces. On phones, the Wi-Fi details screen shows the IP alongside the network name.

    Finding your public address is even easier: any search engine will report it if you search for "what is my IP," or you can visit an IP-checking service. Your router's admin page usually displays both — the WAN address is your public IP, while the DHCP client list shows every private address on your network.

    One subtlety worth knowing: if you use a VPN, the address a website reports is the VPN server's address, not your real public IP. And if you are behind carrier-grade NAT — common on mobile networks and some ISPs — the address you see is shared by many subscribers and is not truly unique to you.

    Why Your IP Address Matters for Security

    A public IP is a doorbell: it tells the world where to knock. Port scanners, botnets and opportunistic attackers constantly probe address ranges looking for exposed services — open remote-desktop ports, unpatched routers, forgotten cameras. Most of these probes fail because consumer routers drop unsolicited traffic, but the address is still the entry point an attacker needs before anything else.

    Defensive posture follows directly from this. Keeping router firmware updated closes known vulnerabilities that scanners target. Disabling remote administration, using strong Wi-Fi passwords and enabling the built-in firewall shrink your exposure. A VPN adds a layer by substituting the provider's address for yours, so your real IP never reaches the sites you visit.

    On the private side, segmentation matters too. Guest networks isolate visitors' devices from yours. IoT devices on a separate subnet limit what a compromised smart plug can reach. Understanding that private addresses only exist inside your perimeter is what makes these boundaries meaningful.

    Why Your IP Address Matters for Privacy

    Your public IP leaks more than connectivity — it leaks context. Geolocation databases map address ranges to cities or regions, so websites can infer your approximate location without asking. Your ISP can see every destination you connect to, and that metadata alone reveals a surprising amount about your habits.

    Advertisers and analytics services use IPs as a stable identifier to link visits across sites, building profiles even when you clear cookies. Some services combine your IP with browser fingerprints to de-anonymize Tor users or VPN subscribers when the VPN's own address is well known.

    This is where tools like VPNs and the Tor network earn their keep: they replace your real address with one that belongs to the exit server or relay, breaking the direct link between your identity and your activity. A reputable VPN also encrypts the traffic between you and its server, so your ISP sees only that you connected to the VPN — not which sites you visited. Free VPN services deserve skepticism, however: many monetize by logging and selling user activity, which trades one privacy problem for another.

    Common IP Address Misconceptions

    Several myths persist around IP addressing. The first is that a private IP protects you from the internet — it does not by itself; protection comes from NAT and the router's firewall, and a misconfigured port forward can still expose a device. The second is that hiding your IP makes you anonymous — it reduces linkability but does not guarantee it, especially with VPNs whose exit addresses are cataloged.

    Third, people assume every device needs a unique public IP. NAT exists precisely to disprove that, and IPv6's abundance of addresses changes the calculus but not the underlying logic. Fourth, there is a belief that changing your IP resets your reputation or bans — sometimes true on websites that rate-limit or block abusive addresses, but a fresh IP is a fresh start only until you repeat the behavior.

    Finally, "IP address" is sometimes treated as a person identifier. It identifies a connection endpoint, often shared, and it can change hands or be reassigned. It is a useful signal for security and geolocation, not a fingerprint.

    Frequently Asked Questions

    Is my private IP address visible to websites?

    No. NAT translates your private address to the router's public address before traffic leaves your network, so websites only ever see the public one. Your private IP stays confined to your local network.

    Can someone hack me just by knowing my IP address?

    Knowing an address alone is not enough to break in, but it gives an attacker a target for port scanning and exploit attempts against exposed services. Keeping firmware updated, closing unused ports and using a firewall keeps those probes harmless.

    Why did my public IP address change?

    Most ISPs assign dynamic addresses that rotate on a schedule or when your connection resets. This is normal recycling of a limited address pool, not an error. If you run a server or need a stable address, ask your provider about a static IP option.

    Does a VPN change my private IP address too?

    No. Your devices keep their private addresses inside your local network; the VPN changes the public address that appears on the internet by routing your traffic through its own servers. Devices on your network can still see each other's private IPs as usual.

    What is the difference between an IP address and a MAC address?

    An IP address identifies a device at the network layer and can change between networks. A MAC address is a hardware identifier burned into the network adapter, used for local communication on the same network segment. MAC addresses do not route across the internet, while IP addresses are what the global network uses to deliver packets.

    Understanding public versus private addressing demystifies most of what happens between your devices and the wider internet. Your public IP is the identity you present to the world — visible, loggable and occasionally worth masking. Your private IPs are the internal plumbing that lets your devices cooperate without exposing them. NAT quietly stitches the two together, giving every household a single public face while keeping the machinery behind it invisible. Check both occasionally, keep your router updated, and remember that the address in your settings bar is only half the story.

    How does internet censorship shape our digital world?
    Does a VPN affect internet speed?

    Comments 0

    Add comment