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):
| Range | Commonly Used For |
|---|---|
| 10.0.0.0 – 10.255.255.255 | Large enterprise networks |
| 172.16.0.0 – 172.31.255.255 | Medium networks |
| 192.168.0.0 – 192.168.255.255 | Home and small office networks |
Public IP vs Private IP: Side-by-Side Comparison
| Feature | Public IP | Private IP |
|---|---|---|
| Assigned by | ISP | Router (DHCP) |
| Visible on internet | Yes | No |
| Globally unique | Yes | No (reused across networks) |
| Changes over time | Often (dynamic) | Occasionally |
| Used for | Internet communication | Local network communication |
| Security exposure | Higher | Lower |
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:
- Your laptop sends a request to Google
- Your router receives it, notes the private IP of your laptop
- Router forwards the request using its public IP address
- Google responds to the public IP
- 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:
- Open Command Prompt
- Type
ipconfig - Look for "IPv4 Address" under your active adapter
Mac:
- Open Terminal
- Type
ipconfig getifaddr en0(for WiFi) oren1(for Ethernet)
iPhone:
- Go to Settings → WiFi
- Tap the (i) next to your network
- See your IP address listed there
Android:
- Go to Settings → WiFi → tap your network
- 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