Public IP vs Private IP: What's the Difference?

IP Address & Networking6 min read
Illustration of a home with private devices connected to a router and a public internet cloud

If you have ever compared the IP address shown in your phone's Wi-Fi settings with the one displayed by an online lookup tool, you have noticed that they do not match. That is not a bug. Your devices have private IP addresses on your home network, while your connection as a whole has a public IP address on the internet. Understanding the split explains why some things work effortlessly and others, such as hosting a game server, need extra setup.

What is a public IP address?

A public IP address is globally unique and reachable, in principle, from anywhere on the internet. It is assigned by your internet service provider from a block that the provider obtained through a regional internet registry. Every website you visit sees your traffic as coming from this address, and it is the address that lookup tools report.

Public addresses are a limited resource, especially in IPv4. Providers therefore assign one per customer, or in some networks even share one among many customers. You can see yours at any time on the stor10 home page.

What is a private IP address?

A private IP address is used only inside a local network such as your home or office. RFC 1918 reserves three IPv4 blocks for this purpose:

  • 10.0.0.0 to 10.255.255.255 (10.0.0.0/8), popular in companies
  • 172.16.0.0 to 172.31.255.255 (172.16.0.0/12)
  • 192.168.0.0 to 192.168.255.255 (192.168.0.0/16), the default of most home routers

Routers on the internet are configured to drop traffic to and from these ranges, so millions of networks can safely reuse the same numbers. IPv6 has its own equivalent called unique local addresses (the fc00::/7 range), although IPv6 devices usually also have globally routable addresses.

How the two work together

Your router sits on the boundary. On the inside it has a private address, commonly 192.168.1.1, and acts as the gateway for your devices. On the outside it has a public address from your provider. When a laptop requests a web page, the router rewrites the source address of the outgoing packet from the laptop's private address to its own public address, remembers the conversation, and translates the reply back. This process is called Network Address Translation and is explained step by step in What Is NAT?

The practical result is that dozens of devices can share one public address, which delayed the exhaustion of IPv4 by many years.

Key differences at a glance

FeaturePublic IPPrivate IP
ScopeEntire internetLocal network only
UniquenessGlobally unique at a timeUnique only inside one network
Assigned byInternet providerYour router (DHCP) or manually
Reachable from outsideYes, subject to firewallsNo, unless forwarded by the router
Example203.0.113.42192.168.1.23

Security and privacy implications

Private addressing gives a side benefit: unsolicited inbound connections from the internet reach only the router, which drops them unless you have configured port forwarding. This is not a firewall in the strict sense, but it blocks a lot of casual scanning. Read more in What Is a Firewall?

Your public address, on the other hand, is visible to every site you visit and can reveal your provider and approximate region. Whether that matters depends on your threat model; How Websites Track Visitors explains how addresses are combined with other signals.

How to check both addresses

For the public address, use the tool on our home page. For the private address, run ipconfig on Windows, ip addr on Linux, or open the network details on macOS, Android or iOS. If the "WAN" or "Internet" address in your router's admin page differs from the public address shown online, your provider is probably using carrier-grade NAT, covered in How Does Your ISP Assign IP Addresses?

Conclusion

A public IP address identifies your connection to the wider internet, and a private IP address identifies a device inside your local network. Routers translate between them, which conserves addresses and adds a layer of separation. Knowing which one you are looking at will save you time when troubleshooting, configuring a router or reading a lookup result.

Frequently asked questions

Is 192.168.1.1 a public address?

No. It is a private address that most home routers use for their local interface and admin page.

Can I change my public IP address?

You cannot choose it, but with a dynamic connection it may change after a router restart, or you can use a VPN to present a different public address.