MyIP

Public vs Private IP Addresses Explained

Understand the difference between public and private IP addresses, how NAT works, and why your router assigns local addresses to devices.

What Is a Public IP Address?

A public IP address is assigned by your ISP and is visible to the entire internet. When you visit a website, the server sees your public IP address, not the private address of your individual phone or laptop.

Public IPs are globally routable, meaning any device on the internet can theoretically send data to them (subject to firewalls and security settings). You can check your current public IP instantly on our homepage.

What Is a Private IP Address?

Private IP addresses are used within local networks (homes, offices, schools) and are not routable on the public internet. Common ranges include 10.0.0.0–10.255.255.255, 172.16.0.0–172.31.255.255, and 192.168.0.0–192.168.255.255.

Your router assigns private IPs to each connected device via DHCP. Multiple households can use the same private IP ranges without conflict because they are isolated behind their own routers.

How NAT Connects Them

Network Address Translation (NAT) is the technology that lets dozens of devices share a single public IP. When your phone requests a webpage, the router replaces the private source IP with the public IP before forwarding the packet.

When the response arrives, the router checks its NAT table and forwards the data to the correct private device. This is why port forwarding is needed for hosting servers on home networks.

Why It Matters for Privacy

Websites and advertisers track you primarily by your public IP address. Changing your public IP (by reconnecting your router or using a VPN) can reset some tracking profiles.

Private IPs are never exposed to the internet under normal circumstances, so they do not affect your online privacy or geolocation.

Frequently Asked Questions

How do I find my private IP address?

On Windows, run ipconfig in Command Prompt. On Mac/Linux, run ifconfig or ip addr. Look for addresses starting with 192.168, 10., or 172.16–31. Our site shows your public IP, not your private one.

Can someone hack me through my public IP?

Knowing your public IP alone is not enough to hack your devices. Attackers would also need open ports or vulnerabilities. Keep your router firmware updated and avoid unnecessary port forwarding.

Does a VPN change my public IP?

Yes. A VPN routes your traffic through its server, so websites see the VPN server's public IP instead of yours. Our homepage can help you verify whether a proxy or VPN is detected.

Related Tools