seolivly
IP basics

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

Your laptop says one IP address, a website says another. Both are right. Here is what each one does and when you need which.

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:

RangeWhere you usually see it
10.0.0.0 to 10.255.255.255Larger offices, some home routers, cloud networks
172.16.0.0 to 172.31.255.255Corporate networks, Docker containers
192.168.0.0 to 192.168.255.255Most 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?

TaskUse
Allowlisting your office on a hosting panel or databasePublic IP
Telling your ISP or host about a blockPublic IP
Checking whether a VPN worksPublic IP (before and after)
Adding a network printerPrivate IP
Port forwarding to a game console or cameraPrivate IP of the device, set in the router
Opening your router's admin pagePrivate 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.

Frequently asked questions

Is 192.168.1.1 a public IP?

No. Anything starting with 192.168 is private. 192.168.1.1 is a common default address for a home router's admin page.

Can two devices have the same private IP?

Yes, as long as they are on different networks. Millions of homes use 192.168.1.10, and that is fine because those addresses never meet on the internet.

Can two homes have the same public IP?

Sometimes. Some providers use carrier-grade NAT and share one public IP between many customers, especially on mobile networks.

Does a VPN change my private IP?

It usually adds a new virtual adapter with its own address, but its main job is to change the public IP that websites see.

Is my public IP static or dynamic?

Most home connections are dynamic and can change. Ask your provider, or note your IP over a few weeks to see if it moves.

Keep going