The Core Difference
A private IP address is used to identify a device on a certain network, for instance your office or home network. Different devices on that network, like your laptop, phone or printer would each have a unique private IP address assigned to them by your network router.
Each network is assigned a unique public IP address by the user’s Internet Service Provider. This is the address that is used to identify your network on the Internet.
Your router is assigned one public IP address and hands out private IP addresses to the devices connected to it. One public IP is shared among many private IP addresses.
Public vs Private IP: Side by Side
A table makes the contrast clear.
| Feature | Private IP | Public IP |
|---|---|---|
| Scope | Local network only | The whole internet |
| Assigned by | Your router (DHCP) | Your internet provider |
| Uniqueness | Reused on many networks | Globally unique |
| Reachable from internet | No | Yes |
| Example | 192.168.1.14 | 203.0.113.45 |
| Cost | Free | Part of your ISP plan |
The row “reachable from the internet” describes addresses that are visible to the public and are so more risky. Private IP addresses do not have an address visible to the public and so give an extra layer of security. As a result, attacks originating from the public network cannot convey directly to a device behind the router and so are not able to attack a device connected to the router.
The Private IP Ranges
There are three blocks of IP addresses that are reserved for private use. These are defined in RFC 1918. Any IP address that falls within these ranges are considered private IP addresses.
| Range | CIDR | Typical use |
|---|---|---|
| 10.0.0.0 to 10.255.255.255 | 10.0.0.0/8 | Large business networks |
| 172.16.0.0 to 172.31.255.255 | 172.16.0.0/12 | Medium networks |
| 192.168.0.0 to 192.168.255.255 | 192.168.0.0/16 | Home and small office |
You’ve probably seen 192.168.0.1 or 192.168.1.1 before. These are the default addresses used by many home routers. Any device that has an IP address that starts with 192.168, 10, or 172.16-172.31 is a private IP address. All other addresses are public.
How NAT Connects Them
How, then, does your laptop access a website when it cannot convey to websites using its private IP address? Your router uses a mechanism called NAT (Network Address Translation) to map the public IP address to the private IP address.
When your laptop with the private IP address of 192.168.1.14 sends a request to a website, the router changes the source IP address to its public IP address and then forwards the request to the website. The website replies to the public IP address of the router. The router then forwards the response to your laptop.
The reason why many devices on the same network can access the internet using the same public IP address is called NAT. It also allows for increased efficiency when assigning IP addresses on the internet. One public IP address can show several private IP addresses.
How to Find Your IP Addresses
To find either of these addresses, look in the following places.
To find your public IP, the easiest way is to search "what is my IP" in any search engine. Visit a site that shows it. The result is the address your provider assigned, the one the internet sees. The free [Denwix tools](here can also help you inspect address details.
To find your private IP on Windows, open the Command Prompt and type ipconfig, then look for the IPv4 Address, which usually starts with 192.168. On a Mac, open System Settings, go to Network. Select your connection to see the IP. On a phone, the Wi-Fi settings show the device's local address.
These two numbers will be distinct from each other. That’s the idea. The private number is your apartment number. The public number is the street address of the building.
A Real-World Example
Let’s say you want to set up a security camera at your place and you want to be able to see it from work. The private IP address of the camera is 192.168.1.50. Using that address from work will not allow you to view the camera. You are left perplexed.
The reason is the focus of this article. On your home network, 192.168.1.50 is unique. From work, the address means nothing because thousands, if not millions, of cameras could be on that address. In this case to view the camera from the outside world you would have to open a specific port to forward requests to the camera and give the public IP of your network to do so. The private address gets you to the camera on the network, the public address with port forwarding gets you to it from anywhere.
Figuring out which address means what resolves the problem.
Why This Matters
There are real world situations where this comes into play. Setting up something like a game server or printer needs knowledge of these addresses. Public and private traffic are also handled differently by security tools and firewalls. When you are having issues with your network, the first thing support asks you is which address you mean.
For the formal definitions, [RFC 1918](here is the document that reserves the private ranges. @CAP@[Cloudflare's learning center](here explains IP addresses in plain language. Both are solid references if you want to go deeper.
The Bottom Line
Think of it this way, a public IP address identifies a network to the rest of the world. A private IP address identifies a device on a network. Cannot be accessed over the internet. Together, these addresses are connected via NAT allowing devices on the same network to convey with each other using the public IP address.
Questions and Answers
What is the difference between a public and private IP?
Think of it this way. A public IP address identifies a network to the rest of the world and is unique to that network. A private IP address identifies a device on that network.
What are the private IP address ranges?
A few instances of private IP addresses are 10.0.0.0 to 10.255.255.255, 172.16.0.0 to 172.31.255.255 and 192.168.0.0 to 192.168.255.255.
Is 192.168.1.1 a public or private IP?
It’s private. It’s in the 192.168.0.0/16 range and is the default gateway for many home routers. It is not publicly accessible.
How do I find my public IP address?
Go to any search engine and type “what is my IP” to find your public IP address. Your ISP assigns this to you and websites convey with you through this address.
How do I find my private IP address?
To find your private IP address on Windows run “ipconfig” and look for your IPv4 address. On a Mac, go to “Network” settings. On your phone, go to your Wi-Fi settings. They usually start with 192.168.
Why do all my devices share one public IP?
Because your router has only one public IP address and uses NAT to virtualize it for the many devices on your local network.
What is NAT?
Network Address Translation is the process your router uses to swap private addresses for its public one and back again. It lets many private devices reach the internet through a single public IP.
Can two networks use the same private IP?
Yes. Private addresses are reused on millions of networks because they never travel outside their own network. Two homes can both use 192.168.1.10 with no conflict.
Is a private IP more secure?
Exposing private IP addresses gives an added level of security. Attackers will only see the public IP address of your router.
Why can't I reach my private IP from outside my network?
Because private addresses only exist inside their local network. From outside, they're meaningless, since countless networks reuse the same private addresses. You'd need the public IP and port forwarding.
Does my public IP change?
Yes, often. Most residential customers are assigned a public IP address that changes from time to time. Most providers charge extra or need a business account for a public IP that doesn’t change.
What is port forwarding?
Port forwarding tells your router to send incoming requests on a specific port to a certain device inside your network. It's how you reach a private device, like a camera, from the internet.
Can a website see my private IP?
No, most connections are not like that. A website can only ‘see’ your public IP. Your private IP is confined to your local network and is invisible to the outside world.
What is a dynamic IP versus a static IP?
A dynamic IP is temporary and on its own assigned. A static IP doesn’t change. Either can be public or private. The public IP is constantly changing for residential customers.
How does my router assign private IPs?
Using DHCP. When a new device connects to your network your router assigns it a free private address from its pool.
Why does my device show two IPs?
You’ll likely see your internal private IPv4 address and perhaps an IPv6 address, in addition to your public IP shown by the external site. The private IP is used on your local network and the public IP is exposed to the Internet.
Can I change my private IP?
Yes. You can set a device to use a specific private address. Renew its DHCP lease to get a new one. Just keep it within your router's range and avoid conflicts.
What is the difference between IPv4 and IPv6 here?
Older IPv4 addresses use a format like 192.168.1.1 and the newer format IPv6 is used on the same devices to eliminate the need for NAT. The concepts of public and private IPs still apply.
Do public and private IPs apply to mobile data?
Yes. Mostly when using mobile data your Internet Service Provider will also be using a large-scale NAT, meaning many customers share the same public IP address. Your device will also have a private IP address on the mobile data network.
How do I keep my IP address private online?
Public IPs are displayed to sites being visited. With a VPN, the site sees the public IP of the VPN not that of the user thereby masking the user’s public IP.
Can I have two public IP addresses?
Yes, with the right service. While businesses buy several public IPs for each of their servers, homes mostly have just the one.
Why does my public IP keep changing?
Most providers assign public IPs dynamically which changes from time to time. Contact your provider to find out how to get a public IP assign a static IP address.
Is my router's IP public or private?
Your router has both. It holds a public IP facing the internet and a private IP, often 192.168.1.1, that your home devices use as their gateway.
Can two devices have the same private IP?
Not on the same network. They'll conflict. Across different networks, the same private address is reused freely, since it never leaves its own network.
How do I find a device's IP on my network?
To find out which IP addresses are assigned to which devices on your network, log in to your router’s settings. To find your device’s IP address, go to that device’s settings.
Does a VPN change my public IP?
Yes. A VPN routes your traffic through its server. Websites see the VPN's public IP instead of yours. Your real public IP stays hidden from those sites.
What is a loopback address?
The loopback address, 127.0.0.1, points back to your own device. It's used for testing local services. Traffic to it never leaves the machine.
Why can't websites see my private IP?
As public IP addresses are assigned to entire networks. Not single devices, websites only ‘see’ the public IP of your router. Websites do not see your private IP.