The short answer
A public IP identifies your connection on the internet. Your provider assigns it to your router, and every site you visit sees it. A private IP identifies a device inside your own network. Your router assigns it, and it never travels across the internet.
Think of an office building. The street address is public: couriers use it to find the building. The room numbers inside are private: they only mean something once you are through the front door. Your router is the front desk that knows which room each delivery is for.
The private IP ranges
Three blocks of IPv4 addresses are reserved for private networks. If an address falls inside one of these, it is private:
| Range | Where you usually see it |
|---|---|
10.0.0.0 to 10.255.255.255 | Larger offices, some home routers, cloud networks |
172.16.0.0 to 172.31.255.255 | Corporate networks, Docker containers |
192.168.0.0 to 192.168.255.255 | Most home routers |
Addresses starting with 127. are loopback, meaning "this same device", and 169.254. means the device failed to get an address from the router. Neither is a public IP.
How the two connect: NAT
Your router uses Network Address Translation (NAT). When your laptop requests a web page, the router swaps the laptop's private address for the public one, sends the request out, and remembers which device asked. When the reply comes back, it hands it to the right device. That is how a whole household shares one public address, and why IPv4 has lasted far longer than its address supply should allow.
IPv6 changes this. With so many addresses available, devices can each get a globally unique address. Your router's firewall still decides what can reach them.
Which IP should you use?
| Task | Use |
|---|---|
| Allowlisting your office on a hosting panel or database | Public IP |
| Telling your ISP or host about a block | Public IP |
| Checking whether a VPN works | Public IP (before and after) |
| Adding a network printer | Private IP |
| Port forwarding to a game console or camera | Private IP of the device, set in the router |
| Opening your router's admin page | Private IP of the router (the gateway) |
Get the public one from the IP checker. For the private one, see our guide on finding your IP address on any device.
Is a public IP a privacy risk?
Your public IP reveals your provider and a rough location, typically a city or region. It does not reveal your name or street address; only your provider can connect it to an account. Sites use it to fight abuse, set regional prices and flag unusual logins. If you would rather sites did not see it, a VPN replaces it with the VPN server's address.