DroidCrunch
  • About
  • Blog
  • Categories
    • Automation
    • Tech
    • SEO
    • WordPress
    • Software
    • Hosting
    • Proxy
  • AI
    • AI Writing
    • AI Image
    • AI Tool
    • AI Video
  • Deals
  • Contact
Subscribe
No Result
View All Result
DroidCrunch
  • About
  • Blog
  • Categories
    • Automation
    • Tech
    • SEO
    • WordPress
    • Software
    • Hosting
    • Proxy
  • AI
    • AI Writing
    • AI Image
    • AI Tool
    • AI Video
  • Deals
  • Contact
Subscribe
DroidCrunch

Public vs Private IP Address: What’s the Difference? 2026

Lokesh Kapoor by Lokesh Kapoor
November 27, 2026
3
0

Two laptops in our test network sent a request from the exact same port. The website saw both coming from one address, 198.51.100.2, and quietly gave the second one a different port.

That detail explains public vs private IP addresses better than any definition. Your devices have private addresses that only work at home; the internet sees one public address.

We built that network, logged what each side saw, and checked our own machine’s two addresses too.

Public vs private IP address: the short answer

A private IP address identifies a device inside a local network, like your laptop at 192.168.1.50. It’s assigned by your router and can’t be reached from the internet.

A public IP address identifies your whole network on the internet. It’s assigned by your ISP, shared by every device at home, and it’s what websites see.

Private IPPublic IP
Who assigns itYour router (DHCP)Your ISP
Example192.168.1.50198.51.100.2
Unique?Only inside your networkUnique on the internet
Reachable from the internet?NoYes
Shared?One per deviceShared by every device at home
Seen by websites?NeverAlways
CostFreeIncluded; static ones often cost extra
Example addresses come from ranges reserved for documentation and private use.

What is a private IP address?

A private IP address is one from three ranges set aside for local networks, so millions of homes can reuse the same numbers without clashing. Routers on the internet won’t carry traffic to them.

The three private ranges:

  • 10.0.0.0 to 10.255.255.255, common in offices and some ISP equipment.
  • 172.16.0.0 to 172.31.255.255, common in cloud servers and Docker.
  • 192.168.0.0 to 192.168.255.255, what most home routers hand out.

Watch the middle one. 172.16 to 172.31 is private, but 172.32.0.1 is a public address. We ran a list of addresses through Python’s ipaddress module to check: 172.16.5.4 came back private, 172.32.0.1 came back public.

Your router gives private addresses to your devices through DHCP, usually starting at .2 or .100. That’s why the same laptop might be 192.168.1.50 today and 192.168.1.53 after a reboot.

What is a public IP address?

A public IP address is globally unique and reachable on the internet. Your ISP assigns one to your router, and every website, game server and app you connect to sees it.

On most home connections it changes now and then, because the ISP assigns it dynamically. If you need it to stay the same, for remote access or a server, you can usually pay for a static one. Our guide to static IP addresses covers when that’s worth it.

We checked our own test machine. Its network card reported 172.30.0.2, a private address. An IP checker reported a completely different public address, because the machine sits behind NAT like every home laptop.

Then a second checker surprised us: it returned an IPv6 address instead. Our connection had both, and that checker preferred IPv6. If two “what’s my IP” sites disagree, that’s usually why. Our IPv4 vs IPv6 guide explains what changes with the newer format.

Addresses that are neither: special ranges

Not every address is simply public or private. Several ranges are reserved for special jobs, and you’ll meet some of them when troubleshooting. We ran a set of them through Python’s ipaddress module, which flags whether an address is “private” or “global”:

Python ipaddress classification of special ranges Plain text
address                      private  global  loopback link_local multicast reserved
127.0.0.1                    True     False   True     False      False     False   
169.254.10.20                True     False   False    True       False     False   
100.64.0.2                   False    False   False    False      False     False   
0.0.0.0                      True     False   False    False      False     False   
255.255.255.255              True     False   False    False      False     True    
224.0.0.251                  False    True    False    False      True      False   
192.0.2.10                   True     False   False    False      False     False   
198.51.100.2                 True     False   False    False      False     False   
203.0.113.10                 True     False   False    False      False     False   
8.8.8.8                      False    True    False    False      False     False   
::1                          True     False   True     False      False     True    
fe80::1c2b:3aff:fe4d:5e6f    True     False   False    True       False     False   
fd12:3456:789a::1            True     False   False    False      False     False   
2606:4700:4700::1111         False    True    False    False      False     False   
2001:db8::1                  True     False   False    False      False     False   

Two results are worth knowing. First, Python’s “private” flag is broader than the three home ranges: it also marks loopback, link-local and documentation addresses as private, because none of them should appear on the public internet. Second, 100.64.0.2 came back as neither private nor global. That’s the shared range ISPs use for carrier-grade NAT, and it sits deliberately between the two.

RangeNameWhat it means
127.0.0.0/8 (usually 127.0.0.1)LoopbackThe device talking to itself; never leaves the machine
169.254.0.0/16Link-local (APIPA)The device couldn’t get an address from DHCP
100.64.0.0/10Shared address space (CGNAT)Your ISP is sharing one public IP among customers
0.0.0.0UnspecifiedMeans ‘any address’ in server settings; not a real destination
255.255.255.255BroadcastSent to every device on the local network
224.0.0.0/4MulticastOne sender, many receivers, such as device discovery
192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24DocumentationReserved for examples and tests, like the ones in our lab
Special IPv4 ranges that aren’t ordinary public or private addresses

If your computer shows a 169.254 address, it didn’t get an address from the router at all. That’s a connection problem, not a setting to keep.

How NAT connects the two: what our test showed

NAT (network address translation) is the router feature that swaps a device’s private address for the public one on the way out, then swaps it back on the way in.

We built a small network with Linux network namespaces: two laptops on 192.168.1.50 and .51, a router with a public side of 198.51.100.2, and a website outside. Both laptops called the website from local port 40000.

What each side saw in our NAT test Plain text
# Two laptops behind one router, both using local port 40000
laptop A  192.168.1.50:40000  ->  website sees 198.51.100.2:40000
laptop B  192.168.1.51:40000  ->  website sees 198.51.100.2:33953

# The website tries to reach laptop A directly
curl http://192.168.1.50/   ->  failed (exit 7): no route to a private address

Three things happened:

  1. The website saw one public address for both laptops. It had no idea two devices existed.
  2. The router rewrote the second port from 40000 to 33953, so replies wouldn’t get mixed up. That port swap is how one public IP serves dozens of devices.
  3. When the website tried to reach 192.168.1.50 directly, it failed instantly. There’s no route to a private address from the internet.
How NAT maps private IP addresses to one public IP address, with the router changing the second device's port
From our lab: both laptops used port 40000, so the router moved laptop B to port 33953. The website never saw either private address.

That third point is why your home devices are hidden by default, and why hosting anything at home needs extra work like port forwarding.

Which address do apps and websites see?

Websites, streaming services and ad networks see only your public IP. They can estimate your city and ISP from it, but not which device you’re on.

Your private IP shows up only inside your network: on the router’s device list, in printer settings, or when one computer shares files with another.

So when a site blocks “your IP”, it blocks everyone in your house. When a streaming service says you’re in the wrong country, it’s reading your public IP, which is why a VPN or proxy changes what it sees. Our breakdown of proxy vs VPN covers which one hides what.

How to find your public and private IP address

Private IP:

  • Windows: open Command Prompt and run ipconfig. Look for IPv4 Address.
  • Mac: System Settings, Network, your connection, Details. Or run ipconfig getifaddr en0 in Terminal.
  • Phone: Wi-Fi settings, tap your network.

Public IP:

  • Search “what is my IP” or open any IP checker site.
  • Or check the WAN or Internet section of your router’s admin page.

Compare the router’s WAN address with the IP checker. If they match, your router has a real public IP. If the router shows a 100.64 to 100.127 address, your ISP uses carrier-grade NAT and shares one public IP between many customers. That second layer of NAT is why some people can’t host game servers or reach home cameras from outside.

Private IP address ranges: 10.x, 172.16 to 172.31 and 192.168, plus the 100.64 carrier NAT range
A 100.64 address on your router’s WAN page means your ISP shares one public IP between customers.

Public and private addresses in IPv6

IPv6 has the same idea with different numbers, plus one big change: there are enough addresses that NAT usually isn’t needed. Each device can get its own globally unique address.

IPv6 rangeTypeIPv4 equivalent
::1Loopback127.0.0.1
fe80::/10Link-local, on every interface169.254.x.x, but always present
fc00::/7 (in practice fd00::/8)Unique local addresses10.x, 172.16-31.x, 192.168.x
2000::/3Global unicast (public)Public IPv4
2001:db8::/32Documentation192.0.2.0/24 and friends
IPv6 address types and their IPv4 counterparts

Our classification run agreed with these labels: fe80:: and fd12:: addresses came back as private, and 2606:4700:4700::1111 (a public DNS resolver) as global.

Because IPv6 devices can have public addresses, your router’s firewall does the job NAT did as a side effect: it blocks unsolicited incoming connections. Most operating systems also rotate temporary IPv6 addresses for outgoing traffic, so websites don’t see the same device address forever. Our IPv4 vs IPv6 guide covers the wider differences.

Static and dynamic, public and private

“Static” and “public” are often confused. They describe different things, and all four combinations exist:

PrivatePublic
DynamicDefault at home; the router assigns from a poolDefault from most ISPs; can change after restarts
StaticA DHCP reservation or manual setting on the deviceA fixed address from your ISP, often a paid add-on
Static and dynamic apply to both private and public addresses

For most homes, the useful change is a static private IP (a DHCP reservation) for devices like printers, NAS drives or servers, so other devices and port-forwarding rules can always find them. A static public IP only matters if you host something that outsiders must reach at a fixed address.

Private and public IPs in the cloud

Servers have both kinds too. A typical cloud server or VPS gets a public IP for internet traffic and a private IP on the provider’s internal network, often in the 10.x range. Servers in the same account talk over the private network, which is faster, usually free of transfer charges and not exposed to the internet.

Docker adds another layer. Containers get private addresses on internal bridge networks, commonly in the 172.17 range, and the host forwards selected ports to them, much as a home router does. If you’ve ever seen a 172.17.0.2 address in logs, that’s a container talking.

Troubleshooting with IP addresses

Your addresses often tell you exactly what’s wrong:

What you seeLikely meaningWhat to do
Device has a 169.254.x.x addressNo reply from the router’s DHCPRestart the router and device; check the cable or Wi-Fi password
‘IP address conflict’ warningTwo devices set to the same private IPUse DHCP reservations instead of manual addresses
Router WAN shows 100.64.x.xISP uses CGNATAsk the ISP for a public IP, or use a tunnel for hosting
Router WAN shows 192.168.x.x or 10.xDouble NAT behind another routerPut the ISP box in bridge mode
Public IP changes oftenDynamic public IPUse dynamic DNS or buy a static IP
Websites show the wrong countryYour IP’s location database entry is off, or you’re on a VPNCheck with an IP lookup; contact the ISP if it persists
Common IP-related symptoms and fixes

What a public IP lookup reveals

To see what websites learn from a public address, we ran our test machine’s own connection through three IP lookup services on 24 November 2026. The results were a useful surprise: the three services saw three different public addresses. One saw a Cloudflare address over IPv4, another saw a Cloudflare IPv6 address, and the third saw an address belonging to a regional Indian ISP in Uttar Pradesh. Our machine’s traffic leaves through a gateway, and different routes exit in different places.

That’s normal for VPNs, corporate networks and cloud machines, and it’s why “what is my IP” sites can disagree. For an ordinary home connection, you’ll usually see one IPv4 and one IPv6 address.

The lookup that saw the broadband address returned this kind of detail:

Field returnedExample of what it showedWhat it reveals
Reverse DNS (hostname)None: the address had no PTR recordNothing here, though many ISPs do publish one
City and regionA town in Uttar Pradesh, IndiaApproximate area, often off by tens of kilometres
CoordinatesA point near that townThe centre of a region, not your home
Organisation (ASN)AS134375, a regional Indian ISPWhich company routes your traffic
Postal codeA nearby PIN codeA rough area, not an address
Time zoneAsia/KolkataUseful for sites to localise content
What a free IP lookup returned for one of our test machine’s public addresses, 24 November 2026

Notice what’s missing: no name, no street address and no device details. The location is the area the ISP’s address block is registered to, which can be a different town. The other lookup placed its IPv6 address in Delhi under Cloudflare’s network, about 40 km away.

Still, the ISP name and town are enough for a site to localise content, and combined with cookies or a login they help build a profile. That’s why the privacy question below matters.

Is a private IP address safe?

Safer, not safe. A private address can’t be reached directly from the internet, so random scans hit your router, not your laptop. That’s a real benefit.

But NAT isn’t a firewall. Malware you download can still connect out, and a device that opens ports through UPnP undoes the protection. Keep your router’s firmware updated and its admin password changed from the default.

Your public IP is less private than people think. It reveals your rough location and ISP to every site you visit. It doesn’t reveal your name, but your ISP knows who had which address and when.

When you’d want a different public IP

Most people never need to think about it. A few situations change that:

  • A site has blocked your IP, often after too many logins or a shared IP’s bad reputation.
  • You’re managing several accounts on one platform and each needs its own address.
  • You’re collecting public web data and requests from one IP get rate-limited.
  • You want location privacy from sites and apps.

A VPN swaps your public IP for the VPN server’s. A proxy does the same for one app or browser. For account work or data collection, residential proxies give you IPs that belong to real home connections, which sites trust more than data-centre addresses.

Heads-up: our IPRoyal link is an affiliate link. If you buy through it, DroidCrunch earns a commission at no extra cost to you.

IPRoyal sells residential IPs by the gigabyte, which suits occasional use. Our explainer on residential proxies covers how they work, and the list of residential proxy providers compares the main options.

Frequently asked questions

Is 192.168 a public or private IP?

Private. Every address from 192.168.0.0 to 192.168.255.255 is reserved for local networks, which is why most home routers use 192.168.0.1 or 192.168.1.1. Millions of homes use the same 192.168 addresses at once without any conflict, because none of them are routed on the internet.

Can two devices have the same private IP address?

Not on the same network, because the router couldn’t tell them apart and both would lose connection. Devices on different networks can share one easily. Your laptop at 192.168.1.50 and your neighbour’s phone at 192.168.1.50 never meet, because each sits behind its own router.

Can someone find me with my public IP address?

Not directly. A public IP reveals your rough city and your ISP, not your name or street address. Only your ISP can link an IP to a customer at a given time, and it usually hands that over only to police with legal paperwork.

Does my public IP change?

On most home connections, yes, from time to time. ISPs assign dynamic addresses that can change when the router restarts or the lease runs out. Some keep the same one for months. If you need it fixed, ask your ISP for a static IP.

Is 100.64 a private IP address?

Not exactly. 100.64.0.0 to 100.127.255.255 is shared address space reserved for carrier-grade NAT. ISPs give it to customers’ routers and then share a smaller pool of public IPs between them. Like private addresses, it isn’t reachable from the wider internet.

Do I need to hide my private IP address?

No. Your private IP means nothing outside your own network, and thousands of other homes use the same one. Sharing a screenshot that shows 192.168.1.50 reveals nothing useful. Your public IP is the one worth protecting if location privacy matters to you.

What is the difference between a public IP and a static IP?

Public describes where an address works: on the internet. Static describes whether it changes. A public IP can be dynamic or static, and a private IP can be set as static on your router so a printer or server always keeps the same address.

What does a 169.254 IP address mean?

It means your device didn’t get an address from the router, so it gave itself a link-local address. It can talk to nearby devices but not the internet. Restart the router and the device, check the Wi-Fi password or cable, and make sure the router’s DHCP server is turned on.

The bottom line

A private IP names a device inside your network, and a public IP names your whole network on the internet. In our test, two laptops on separate private addresses looked like one public address to the website, and the router juggled ports to keep their replies apart.

For everyday use, you don’t need to change either. Hosting something at home? Compare your router’s WAN address with an IP checker first. If a site blocks you or you’re managing accounts, a VPN or proxy changes the public IP the world sees.

Summarize this article with AI

Get the key points in seconds. Pick an assistant and it opens in a new tab, ready to go.

ChatGPTClaudePerplexityGoogle AIGrokMistral

Opens in a new tab. Nothing is shared until you pick an assistant.

Share4Tweet2Share1Share
Previous Post

What Is Port Forwarding? How It Works and How to Set It Up 2026

Lokesh Kapoor

Lokesh Kapoor

I am Lokesh Kapoor who loves to write blogs, create videos and watch sci-fi movies on Netflix and Jio Cinema. DroidCrunch is my first love and a crucial part of my life.

Related Posts

What is port forwarding: title card showing a router passing one connection from the internet to a home server

What Is Port Forwarding? How It Works and How to Set It Up 2026

November 27, 2026
298
How to change your IP address: title card showing a laptop's traffic passing through a tunnel to the internet with a new address

How to Change Your IP Address (and Hide It): 6 Ways That Work 2026

November 27, 2026
299
Is Windows Defender enough: title card showing a shield on a laptop with lab score bars

Is Windows Defender Enough? What It Misses and When It’s Fine 2026

November 26, 2026
299
Are VPNs legal: a world map with a VPN shield and a gavel

Are VPNs Legal? The Rules by Country, Including India 2026

November 26, 2026
299
Load More

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

I agree to the Terms & Conditions and Privacy Policy.

DroidCrunch

Tested first. Then written.

Independent software reviews since 2016. Search the archive, or start with a topic.

WordPressAI toolsHostingVPNSEO
  • 640+reviews, comparisons and guides
  • 243product reviews
  • 36topics covered
  • 2016publishing since
home

An independent tech blog and YouTube channel. We use every tool before we rate it, and we always tell you the catch.

Topics

  • WordPress
  • AI tools
  • Hosting
  • SEO
  • VPN
  • Proxies
  • Automation

Company

  • About DroidCrunch
  • Editorial policy
  • Affiliate disclaimer
  • Write for us
  • Contact

Explore

  • All articles
  • Reviews
  • Deals and coupons
  • Black FridayLive
  • Facebook group
  • Help and support

Recently scored

  • miniOrange Secure MCP Server75%
  • Royal MCP80%
  • WPVibe76%
  • Zapier82%
All reviews

Reader-supportedWhen you buy through our links, we may earn a commission at no extra cost to you. It never changes our verdicts. Read our affiliate disclaimer.

© 2026 DroidCrunch. Independent since 2016.

  • Privacy policy
  • Terms
  • Cookie policy
  • Your GDPR rights
  • RSS
Back to top

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In

Add New Playlist

No Result
View All Result
Subscribe
  • About
  • Blog
  • Categories
    • Automation
    • Tech
    • SEO
    • WordPress
    • Software
    • Hosting
    • Proxy
  • AI
    • AI Writing
    • AI Image
    • AI Tool
    • AI Video
  • Deals
  • Contact

© 2026 DroidCrunch - Best Place for Tech NomadPrivacy PolicyTerms & ConditionsCookie PolicyGDPR RightsAffiliate Disclosure

DroidCrunch Giveaway

Amazon Gift Card worth $15

Participate now and get a chance to become a lucky winner to receive the reward.​

Join Giveaway