Free tech learning for everyone, from basics to pro

Photo: Compare Fibre on Unsplash

ComparisonsBeginner

Public IP vs Private IP: what is the difference?

In short: A public IP address is the one your router uses on the internet; websites see it. Private IP addresses are used only inside your home or office network, so the same private ranges can be reused in millions of buildings. The router translates between them using NAT.

Animation: Public IP vs Private IP at a glance. It plays on a loop with no sound.

Public IP vs Private IP in one sentence

A public IP address identifies your connection on the internet, while a private IP address identifies a device inside your own network and is never seen directly from the internet.

Side-by-side comparison

FeaturePublic IPPrivate IP
Where it is usedOn the internetInside a home, school or office network
Who gives it outYour internet providerYour router (using DHCP)
Unique?Unique on the internet at any momentOnly unique inside your network
Typical look (IPv4)For example 203.0.113.7192.168.x.x, 10.x.x.x or 172.16-31.x.x
Seen by websites?YesNo
Changes?Sometimes, depending on your providerCan change when devices reconnect
ExampleYour whole house, as the internet sees itYour phone at 192.168.1.10

What is Public IP?

Your internet provider gives your router a public address. Every website you visit sees this address, which is how it knows where to send its reply. It reveals roughly which area you are in and which provider you use, but not your name or street. Many providers share one public address between several customers, a technique called carrier-grade NAT, because IPv4 addresses ran short.

What is Private IP?

Inside your home, the router hands each device a private address from a reserved range, such as 192.168.1.10 for your phone and 192.168.1.11 for your laptop. These ranges are set aside for private use only, so they are never routed across the internet. That is why millions of homes can all use 192.168.1.1 for their router without clashing. Our article What's an IP address? has an animation of this.

Which one should you use?

You do not choose between them: every connected home uses both. Your devices use private addresses, and the router uses NAT (network address translation) to swap them for the public address when traffic goes out, and back again when replies arrive. You mainly need to know the difference when setting up things like printers (which use private addresses) or troubleshooting ("my laptop has an address starting 169.254" usually means it did not get one from the router).

Common mistakes and myths

  • "My private IP address reveals my location." It only has meaning inside your own network.
  • "A public IP address shows my home address." It shows roughly your area and provider, not your house.
  • Typing a private address from outside your home: it will not reach your device.
  • "IPv6 removes the need for private addresses." IPv6 gives enough public addresses for every device, but networks still use firewalls to block unrequested traffic.

Learn more

Key takeaways

  • Public IP addresses are used on the internet; private ones only inside your network.
  • Private ranges such as 192.168.x.x are reused in millions of buildings.
  • The router's NAT translates between private and public addresses.
  • Websites see your public address, not your devices' private ones.

About the author

Mohamed Fayas

Founder of FM TecHub. CCNA certified, with a BTEC HND in Network Engineering, and BEng (Hons) in Computer Networking and Cloud Security. He writes practical, plain-English guides on networking, security and cloud.

More about the author

© 2026 FM TecHub. Original content written for FM TecHub. Share the link freely; please don't copy the text elsewhere without permission.

Stay up to date by email

New notes, tools and security news from FM TecHub, explained simply. Free.

We only use your email to send these updates. See our privacy policy.