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

Every device connected to the Internet has at least one IP address, but not all IPs are the same. Your router has a public IP visible to the world, while your phone, laptop, and TV each have a private IP that's only visible on your local network. Understanding the difference is key to networking, security, and troubleshooting.

What is a Public IP Address?

A public IP address is assigned by your Internet Service Provider (ISP) and is visible from anywhere on the Internet. It's how websites and services identify your connection.

Key characteristics:

Check your public IP right now at miip.link.

What is a Private IP Address?

A private IP address is used within your local network and is not visible from the Internet. Your router assigns private IPs to every device in your home.

The three private IP ranges defined by RFC 1918:

Most home networks use 192.168.1.x or 192.168.0.x.

How NAT Connects Them

NAT (Network Address Translation) is the technology that lets multiple private IPs share one public IP. Here's how it works:

  1. Your laptop (192.168.1.5) wants to visit miip.link
  2. The request goes to your router
  3. Your router replaces the private IP with its public IP (e.g., 203.0.113.42)
  4. The router remembers which device made the request
  5. When miip.link responds, the router forwards the response back to your laptop

All of this happens automatically and in milliseconds.

Public vs Private: Side by Side

FeaturePublic IPPrivate IP
VisibilityEntire InternetLocal network only
Assigned byISPRouter (DHCP)
UniquenessGlobally uniqueReused in every network
RangeAny non-private IP10.x, 172.16-31.x, 192.168.x
Required for serversYesNo
Costs extraStatic IP doesFree
Reveals locationApproximate city/countryNothing

How to Find Your IPs

Public IP

Visit miip.link — your public IP appears instantly.

Private IP

# Windows
ipconfig

# macOS / Linux
ifconfig | grep "inet "
# or
ip addr show

Look for an address starting with 192.168.x.x, 10.x.x.x, or 172.16-31.x.x.

When You Need a Static Public IP

Most ISPs charge extra for a static IP ($5-20/month). Learn more about dynamic vs static IPs →

Security Considerations

FAQ

Can two devices have the same private IP?

Yes, but not on the same network. Every home uses 192.168.1.x, but since these IPs don't cross the Internet, there's no conflict.

How many private IPs can I have?

A /24 network (192.168.1.0/24) gives you 254 usable addresses. That's more than enough for any home. Larger networks can use 10.x.x.x for 16+ million addresses.

Does my phone have a different IP than my laptop?

On WiFi: both have different private IPs but share the same public IP (via NAT). On mobile data: your phone has its own public IP assigned by your carrier.

Check your public IP at miip.link and compare it with your private IP.

Check your IP address at miip.link — free and instant.