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:
- Globally unique — no two devices have the same public IP
- Assigned by your ISP
- Visible to every website you visit
- Can be static (never changes) or dynamic (changes periodically)
- Required for servers that need to be reachable from the Internet
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:
- 10.0.0.0 — 10.255.255.255 (Class A: 16+ million addresses)
- 172.16.0.0 — 172.31.255.255 (Class B: 1+ million addresses)
- 192.168.0.0 — 192.168.255.255 (Class C: 65,534 addresses)
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:
- Your laptop (192.168.1.5) wants to visit miip.link
- The request goes to your router
- Your router replaces the private IP with its public IP (e.g., 203.0.113.42)
- The router remembers which device made the request
- 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
| Feature | Public IP | Private IP |
|---|---|---|
| Visibility | Entire Internet | Local network only |
| Assigned by | ISP | Router (DHCP) |
| Uniqueness | Globally unique | Reused in every network |
| Range | Any non-private IP | 10.x, 172.16-31.x, 192.168.x |
| Required for servers | Yes | No |
| Costs extra | Static IP does | Free |
| Reveals location | Approximate city/country | Nothing |
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
- Running a web server from home
- Remote desktop access to your home computer
- Hosting a game server
- Running an email server
- Security camera remote access
Most ISPs charge extra for a static IP ($5-20/month). Learn more about dynamic vs static IPs →
Security Considerations
- Your public IP reveals your approximate location (city, country) and your ISP — but not your exact address or name
- Your private IP is invisible from the Internet and poses no security risk
- Use a VPN to hide your public IP for privacy
- Never expose private IP ranges (192.168.x.x) in public DNS or email headers
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.