Skip to content
BENIBIX Learn

Public IP Address vs Private IP Address

People think every device has its own public IP address, and most do not. A public address can be reached from anywhere on the internet. A private address only works inside one home or office. Millions of homes reuse the same private ones. On the way out, the router swaps them for its one public address.

Infrastructure🌐 Networking

Public IP Address

An address the whole internet can reach. Only one device may use it at a time.

A public IP address can be reached from anywhere on the internet. No two devices online share the same one at the same time. Your internet provider gives one to your home router. A server needs one so visitors can find it. Every site you visit sees the public address your traffic comes from.

Example
Jack's server has the public address 203.0.113.10. People anywhere can reach his site at that number.
Why it matters
A website must be reached from outside. So it needs a public address.
Full entry
Infrastructure🌐 Networking

Private IP Address

An address that only works inside a local network. Many homes reuse the same ones.

A private IP address only works inside a local network. Three ranges are kept for this. They start with 10, with 172.16 to 172.31, and with 192.168. Routers on the internet do not pass these addresses on. So millions of homes can use the same ones at once. To reach the internet, the router swaps them for its public address.

Example
Lucy's laptop is 192.168.1.23 at home. Her neighbour's laptop can have the same number in his own home, and nothing clashes.
Why it matters
There are not enough public IPv4 addresses for every device. Private ones let each home use as many as it needs.
Full entry

In one line

Public IP Address
An address the whole internet can reach. Only one device may use it at a time.
Private IP Address
An address that only works inside a local network. Many homes reuse the same ones.