Public IP vs Private IP Explained

Updated:

A public IP is the address that represents your connection on the internet, the one websites, apps and platforms see. A private IP is the address your router gives each device on the local network, such as 192.168.1.5, and it only means something inside that network. NAT links the two: your router swaps the private addresses of your devices for one shared public address on the way out. Knowing the difference tells you which address a proxy actually changes, why every device at home shows the same IP to websites, and why your computer's network settings cannot tell you whether a proxy works.

A dedicated public IP for every account

What a private IP is

Private IPs come from three ranges reserved for local networks: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. Home and office routers hand them out to computers, phones, printers and cameras over DHCP. Millions of networks use 192.168.1.x without conflict because these addresses are never routed on the internet.

They let devices on the same network talk to each other: printing, viewing a camera, opening a shared drive. Websites outside your network never see them.

What a public IP is

A public IP is unique on the internet and assigned by your provider. When you open a page, the server sees that address, looks up its country, provider and ASN, and uses them to decide what content to show, which limits to apply or whether to ask for verification.

A public IP may be dynamic, changing when your modem reconnects, or static. See static vs dynamic IP. To find out which organisation owns a public IP, read what an ASN is.

Public vs private IP at a glance

Public IPPrivate IP
ScopeWhole internetLocal network only
Assigned byInternet or hosting providerYour router or local DHCP server
UniquenessUnique on the internet at any momentUnique only within your network
Seen by websitesYesNo
Example203.0.113.25192.168.1.5, 10.0.0.12
Changes when using a proxyWebsites see the proxy IP insteadNo

NAT and CGNAT: why many devices share one IP

Network Address Translation lets a whole local network reach the internet through one public IP. When your laptop at 192.168.1.5 sends a request, the router replaces the source address with its public IP, remembers the connection and sends the reply back to the laptop. To a website, every device in your home looks like one.

Because IPv4 is scarce, many providers, mobile networks especially, add a second layer called carrier-grade NAT. Your router then receives an address from 100.64.0.0/10 or another private range, and many subscribers share one public IP owned by the provider. The giveaway is a WAN address in your router's admin page that differs from what a what-is-my-IP page shows. You cannot open ports for incoming connections, and your public IP may be shared with strangers.

How to find your public and private IP

  • Public IP in a browser: open What is my IP. With a proxy enabled, it shows the proxy's address.
  • Public IP from the command line: curl https://api.ipify.org. Through a proxy: curl -x http://user:pass@ip:port https://api.ipify.org. Full steps are in the cURL proxy setup guide.
  • Private IP on Windows: run ipconfig and read the IPv4 Address line.
  • Private IP on macOS: ipconfig getifaddr en0 for Wi-Fi, or System Settings, Network.
  • Private IP on Linux: ip addr or hostname -I.
  • Phones: open Wi-Fi settings and tap the connected network.

How proxies fit in

A proxy only changes the public IP that websites see. Your device keeps its private address, still reaches the proxy server using your real public IP, and the proxy forwards requests from its own address. After setting up a proxy, check it with an IP checker, not with ipconfig.

  • WebRTC can expose addresses: browsers may reveal your real public or local IP through WebRTC. See what a WebRTC leak is.
  • Apps that ignore system proxy settings still use your real public IP. Configure the proxy inside the app or route it with a tool such as Proxifier.
  • CGNAT is not a problem for proxies: a proxy is an outgoing connection, so you do not need open ports or a public IP of your own.
  • Need a fixed public IP of your own: a dedicated IPv4 or static ISP proxy gives you an address nobody else uses, for example a Vietnam proxy.

Frequently asked questions

Is 192.168.1.1 public or private?

Private. It is usually your router's address on a home network and only reachable from inside that network.

Can websites see my private IP?

Normally not; they only see your public IP. Older browsers could expose local addresses through WebRTC, which modern browsers now mostly hide.

Why does my computer show a different IP than an IP checker?

Your computer shows the private address from your router, while the checker shows the public address after NAT, or the proxy IP if one is active. The difference is normal.

How can I tell if my provider uses CGNAT?

Compare the WAN IP in your router with the public IP on a checker. If they differ, or the WAN IP is in 100.64.0.0/10, you are behind CGNAT.

Does a proxy give me my own public IP?

A dedicated proxy from VinaProxy gives you a public IP assigned to one customer and kept for the whole rental period. Websites see it instead of your real IP.

A dedicated public IP for every account

Private IPv4 in seven countries and static ISP proxies in Vietnam and the US. Not shared, static for the rental period, with 24/7 ticket support.

View pricing

Related articles

Free tools
What Is My IP Address?
What is my IP? See the public IP address websites see right now, learn IPv4 vs IPv6, and verify in seconds that your proxy or antidetect profile is active.
Knowledge base
Static IP vs dynamic IP: what is the difference?
A static IP is a fixed address; a dynamic IP is reassigned by your provider over time. Compare the two, see which one you have and how to get a static IP.
Knowledge base
What Is a Proxy? A Practical Guide for Beginners
What is a proxy? A plain-English guide to how proxy servers work, the main proxy types, what they are used for, and what they cannot do for you.
Proxy setup
How to use a proxy with cURL (command-line syntax & debugging)
How to use curl with authenticated HTTP(S) proxies (-x http://user:pass@ip:port and -U) on Linux, macOS and Windows, then check headers and latency.
Products
Static residential ISP proxies
Static residential ISP proxies in the United States and Vietnam. IPs registered to consumer internet providers, dedicated to one customer, unlimited bandwidth.
Products
Private IPv4 datacenter proxies
Buy private IPv4 datacenter proxies in the US, Vietnam, Japan, South Korea, Singapore, the UK and Hong Kong. HTTP(S), unlimited bandwidth, auto activation.
ISP · vietnam
Vietnam Static ISP Proxies: Home-Network Vietnamese IPs for Your Most Valuable Accounts
Vietnam static ISP proxies on consumer internet provider IPs. A fixed Vietnamese IP for main Shopee shops, TikTok Shop, Facebook ad accounts and Zalo OA.
IPV4 · united states
US Private IPv4 Proxies: Fast, Dedicated American Datacenter IPs
Dedicated US private IPv4 proxies for scraping, rank tracking, ad checks and Amazon research. Static IP, one user per IP, unlimited bandwidth, fast activation.