Network Guides

What Is a Public IP vs Private IP Address? Differences Explained

← Back to All Articles

Introduction

When people talk about "your IP address," they might mean two very different things: your public IP or your private IP. These two types of IP addresses serve different purposes and operate at different levels of your network. Understanding the difference helps you troubleshoot network issues, configure devices, and better understand your online privacy.


What Is a Public IP Address?

A public IP address is assigned to you by your Internet Service Provider (ISP) and is visible to every website and online service you connect to. It's your network's identifier on the global internet.

Key characteristics:

  • Assigned by your ISP
  • Globally unique (no two devices on the internet share the same public IP simultaneously)
  • Visible to external websites, servers, and services
  • Can be static (permanent) or dynamic (changes periodically)
  • Example: 203.0.113.42

Your public IP is what shows up when you visit what-is-my-ip.best or any similar IP lookup tool.


What Is a Private IP Address?

A private IP address is assigned by your router and only works within your local network (your home, office, or school). It identifies each device — phone, laptop, printer, smart TV — within that network.

Key characteristics:

  • Assigned by your router (via DHCP)
  • Not visible to the internet
  • Can be reused across millions of different private networks
  • Used for device-to-device communication on your LAN
  • Examples: 192.168.1.5, 10.0.0.3, 172.16.0.8

Reserved Private IP Ranges (RFC 1918):

RangeCommonly Used For
10.0.0.0 – 10.255.255.255Large enterprise networks
172.16.0.0 – 172.31.255.255Medium networks
192.168.0.0 – 192.168.255.255Home and small office networks

Public IP vs Private IP: Side-by-Side Comparison

FeaturePublic IPPrivate IP
Assigned byISPRouter (DHCP)
Visible on internetYesNo
Globally uniqueYesNo (reused across networks)
Changes over timeOften (dynamic)Occasionally
Used forInternet communicationLocal network communication
Security exposureHigherLower

How They Work Together: NAT Explained

Your home network uses a system called NAT (Network Address Translation) to let multiple devices share a single public IP. Here's the flow:

  1. Your laptop sends a request to Google
  2. Your router receives it, notes the private IP of your laptop
  3. Router forwards the request using its public IP address
  4. Google responds to the public IP
  5. Router translates the response back to your laptop's private IP

This is why ten devices in your home can all browse the internet simultaneously using one public IP address.


How to Find Your Public IP Address

Visit what-is-my-ip.best — your public IP is shown instantly.

Or use your terminal:

  • Windows: Open Command Prompt → type curl ifconfig.me
  • Mac/Linux: Open Terminal → type curl ifconfig.me

How to Find Your Private IP Address

Windows:

  1. Open Command Prompt
  2. Type ipconfig
  3. Look for "IPv4 Address" under your active adapter

Mac:

  1. Open Terminal
  2. Type ipconfig getifaddr en0 (for WiFi) or en1 (for Ethernet)

iPhone:

  1. Go to Settings → WiFi
  2. Tap the (i) next to your network
  3. See your IP address listed there

Android:

  1. Go to Settings → WiFi → tap your network
  2. Look for IP address in the network details

Frequently Asked Questions

Q: Which IP address does a website see — public or private?
A: Websites see your public IP. Your private IP never leaves your local network.

Q: Can two devices have the same private IP?
A: On different networks, yes. On the same network, no — your router ensures each private IP is unique within the LAN.

Q: Is my private IP more secure?
A: Private IPs are inherently more secure because they're not directly exposed to the internet. However, your router (with its public IP) is the entry point and needs to be properly secured.


Conclusion

Your public IP is your identity on the internet — assigned by your ISP and visible to the world. Your private IP is your device's identity within your home network — assigned by your router and invisible outside your LAN. Both work together through NAT to connect all your devices to the internet seamlessly.


Last updated: 2026 | Category: IP Address Basics

Want to check your current network?

Run Free IP & Privacy Check