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

Not all IP addresses are created equal. Some are visible to the entire internet, while others are hidden behind your router. Knowing the difference is essential for anyone setting up a network — whether at home or in a business.

Public IP Addresses: Your Address on the Internet

🌐 Public IP addresses are unique across the entire internet. No two devices on Earth have the same public IP at the same time.

When you visit a website, the website sees your public IP address. It's like your home's street address — unique and findable from anywhere in the world.

Your ISP (Internet Service Provider) assigns you a public IP address. It might be:

Most home users have a dynamic public IP. Businesses often pay for static IPs so customers can always find their servers.

Private IP Addresses: Your Home Network

🏠 Private IP addresses only work within your local network. They're like apartment numbers within a building — useful inside, but meaningless to postal workers outside.

Your router hands out private IP addresses to all your connected devices. These addresses are reserved specifically for private networks and won't ever appear on the internet.

The Three Private IP Ranges

10.0.0.0 - 10.255.255.255      (10.0.0.0/8)
172.16.0.0 - 172.31.255.255    (172.16.0.0/12)
192.168.0.0 - 192.168.255.255  (192.168.0.0/16)

If your device has an IP starting with 10., 172.16-31., or 192.168., it's definitely a private address.

Common Private IP Setups

Typical home router: 192.168.1.1 (gateway)
Your computer might be: 192.168.1.100
Partner's laptop: 192.168.1.101
Smartphone: 192.168.1.20
Smart TV: 192.168.1.30
Printer: 192.168.1.40

How Your Router Connects the Two

This is called Network Address Translation (NAT). Your router has two jobs:

  1. To your devices: Acts as the gateway (192.168.1.1)
  2. To the internet: Uses your public IP address

When your computer (192.168.1.100) wants to visit google.com:

1. Your computer sends data to the router (192.168.1.1)
2. Router replaces your private IP with its public IP
3. Google sees the request coming from the public IP
4. Google sends the response back to your router
5. Router looks up which private IP asked and forwards the response
⚠️ Why Private IPs Can't Reach the Internet Directly
When Google replies, it sends data to your public IP. Your router knows which private device asked, so it delivers the response. But Google has no idea your private address even exists!

Finding Your IP Addresses

On Windows:

ipconfig

On Mac or Linux:

ifconfig (or ip addr show)

To find your public IP:

Visit whatismyip.com in your browser

Why This Matters

Understanding the difference helps you:

👉 Calculate Private IP Ranges


← Back to Blog | Privacy Policy | Contact Us