public-ip-vs-private-ip

Every device connected to a network uses an IP address to communicate with other devices and services. However, not every IP address has the same purpose.

The two main categories are public IP addresses and private IP addresses. Understanding the difference can help you better understand how your home, office, or mobile network connects to the internet.

What Is a Public IP Address?

A public IP address is an address associated with your internet connection that can be used to communicate with services on the public internet.

Your internet service provider (ISP) typically assigns a public IP address to your internet connection. Websites and online services can see the public IP address used when you connect to them.

For example, when you visit a website, the website’s server normally receives the public IP address associated with your connection.

A public IP address may be used to determine general information such as:

  • IP version
  • Country
  • Approximate region
  • Approximate city
  • Internet service provider
  • Network or organization
  • Time zone in some lookup services

IP-based geographic information is approximate and should not be treated as an exact physical location.

What Is a Private IP Address?

A private IP address is used inside a local network, such as your home, school, or office network.

Your router can assign private IP addresses to devices connected to the network. For example, your laptop, smartphone, smart TV, and printer may each have their own private IP address.

Common private IPv4 ranges include:

  • 10.0.0.0 to 10.255.255.255
  • 172.16.0.0 to 172.31.255.255
  • 192.168.0.0 to 192.168.255.255

These addresses are designed for internal networks and are not directly routable across the public internet.

Public IP vs Private IP

FeaturePublic IPPrivate IP
Main purposeInternet communicationLocal network communication
Assigned byUsually an ISP or network providerUsually a router or network administrator
Visible to websitesUsually yesUsually no
Used inside local networksSometimesYes
Internet-routableYesNo
Example203.0.113.10192.168.1.25

The example addresses above are for illustration and documentation purposes.

How Do Public and Private IP Addresses Work Together?

A typical home network may look like this:

Internet → Public IP → Router → Private IPs → Your Devices

Your router acts as a connection point between the local network and the internet.

For example, your router might have a public IP address provided by your ISP while assigning private addresses such as:

  • Laptop: 192.168.1.10
  • Smartphone: 192.168.1.11
  • Smart TV: 192.168.1.12

The devices use their private addresses inside the local network, while the router communicates with internet services using the public side of the connection.

What Is NAT?

A technology called Network Address Translation (NAT) is commonly used by routers to allow multiple devices with private IP addresses to share a public IP address.

For example, several devices in your home may connect to the internet through the same public IP address.

NAT helps conserve IPv4 addresses and separates many internal network addresses from direct public internet routing.

Can Two Devices Have the Same Private IP?

Two devices should not normally use the same private IP address within the same local network at the same time.

If duplicate addresses occur, devices may experience network connectivity problems.

However, the same private IP address can be used by devices on different networks. For example, your home router and another person’s home router can both assign 192.168.1.10 to a device on their respective networks.

Can Multiple Devices Share One Public IP?

Yes.

This is very common with home networ