Public IP vs Private IP
Every connected device has a private address on its local network and reaches the internet through a public one. Here is how they differ, how NAT links them and which to use when.
Jump to toolPublic IP (internet)
What websites, games, and remote users see.
Given to your router by your internet provider and seen by every website. It matters for game servers, remote access and abuse reports, and changes when you switch networks, restart the router or turn on a VPN.
Example: 203.0.113.42
Show my public IPLive public IP
Quick rules
- Others reach you, for example a game server or remote access: they connect to your public IP, and your router forwards the port to a private IP.
- Devices at home, such as a printer, NAS or camera: connect to their private IP.
- The network behind an address: look up the public IP with IP lookup or WHOIS.
- With a VPN on, the public IP and provider shown above should both change. Confirm with the VPN privacy checklist.
What Is an IP Address?
An IP address is the number that identifies a device on a network so that data can reach it. Your router has a public IP address that the whole internet sees, and it gives each device in your home or office a private IP address that only works inside that local network.
This guide explains the difference with examples of each range, and shows your own public address and, where your browser allows it, your private one side by side.
How to Tell Your Public and Private IP Apart
- Look at the live widgets to see your public and private addresses side by side.
- Use the quick rules to tell a private range from a public one.
- Look up the public address with IP lookup or WHOIS to see who it belongs to.
Private IP Address Ranges
Three IPv4 blocks are set aside for private networks by RFC 1918, and one more for carrier-grade NAT:
| Range | Size and typical use |
|---|---|
| 10.0.0.0 – 10.255.255.255 (10.0.0.0/8) | 16,777,216 addresses; large company networks and some routers |
| 172.16.0.0 – 172.31.255.255 (172.16.0.0/12) | 1,048,576 addresses; offices, labs and Docker's default networks |
| 192.168.0.0 – 192.168.255.255 (192.168.0.0/16) | 65,536 addresses; almost every home router |
| 100.64.0.0 – 100.127.255.255 (100.64.0.0/10) | Shared by providers for carrier-grade NAT, not for home networks |
| fc00::/7 (IPv6) | Unique local addresses, the IPv6 counterpart of the private ranges |
How NAT Lets Private Devices Share One Public Address
Your router keeps a translation table. When your laptop at 192.168.1.20 opens a website, the router swaps the laptop's address for the public address, notes which port it used, and sends the request on.
When the reply arrives, the router looks up that port in its table and passes the data to the laptop. Devices outside cannot start a connection to you this way, which is why a home network is hidden by default and why hosting a server needs port forwarding.
Carrier-Grade NAT: When Your Router Has No Public IP
Many mobile and some broadband providers add a second layer of NAT and share one public address between many customers. Your router then receives an address from 100.64.0.0/10, or another private range, instead of a public one.
To check, compare the WAN or internet address on your router's status page with the address on What Is My IP. If they differ, you are behind carrier-grade NAT, and incoming connections such as port forwarding will not reach you unless your provider gives you a public IP.
Which Address Do You Need?
| Task | Address to use |
|---|---|
| Setting up port forwarding | The private IP of the device that should receive the traffic |
| Letting a friend join your game server | Your public IP, once the port is forwarded |
| Connecting to a printer, NAS or camera at home | That device's private IP |
| Adding your connection to an allow-list | Your public IP |
| Reporting abuse from an address in your logs | The public IP recorded in the log |
Port Forwarding in Five Steps
- Give the device a fixed private IP with a DHCP reservation in your router.
- Open the router's port forwarding page.
- Forward the external port to that private IP and the port the service listens on, choosing TCP, UDP or both.
- Allow the port in the device's own firewall.
- Test from outside your network with the port checker, using your public IP.
Public and Private Addresses in IPv6
IPv6 has enough addresses for every device to have a public one, so home networks usually work without NAT. Your router's firewall still blocks incoming traffic you did not ask for.
Devices also have link-local addresses starting with fe80, which only work on the local link, and some networks use unique local addresses from fc00::/7 for internal services.
What Open, Moderate and Strict NAT Mean for Gaming
- Open: incoming connections reach your console, usually through UPnP or port forwarding.
- Moderate: some players cannot connect to you directly, though matchmaking usually still works.
- Strict: you can only connect to players with open NAT. Double NAT and carrier-grade NAT are common causes.
- To improve it, enable UPnP or forward the game's ports, and avoid running two routers one behind the other.
References
Disclaimer
Router menus differ between manufacturers and firmware versions. Use these steps as a guide and check your router's manual for the exact settings.
Public IP vs Private IP FAQ
Forwarded a port?
Check from outside your network whether it is open.
Related Tools
Tools that often come next after this one