A public IP address is the address the rest of the internet sees and can route traffic to. A private IP address only has meaning inside your own home or office network, and the internet cannot reach it at all. Almost every device you own has both at the same time, which is why “what is my IP?” has two different correct answers depending on who is asking.
This matters for proxy work for one specific reason: a proxy changes your public address only. Your private address stays exactly where it was. Once that clicks, a whole category of confusing results stops being confusing.
If you are starting from scratch, read what is a proxy server first — this article assumes you know roughly what a proxy does.
The simplest way to picture it
Think of an office building with one street address and a lot of internal room numbers.
The street address — “41 Market Street” — is how the postal service finds the building. That is the public IP address. It is unique in the whole city, and anyone outside can use it.
Room 3B is how the mailroom finds you once the post is already inside. That is the private IP address. Every office building in the city probably has a Room 3B, and that is fine, because nobody outside ever uses it to route anything.
A letter addressed to “Room 3B” with no street address goes nowhere. Likewise, a packet addressed to a private IP address cannot cross the public internet — routers are configured to drop it.
What a public IP address is
Your public IP address is assigned by your internet service provider. It is globally unique at the moment you hold it, and it is the address every website you visit records in its logs.
Three things are worth knowing about it:
- You usually share it. On a home connection, every device in the house — laptop, phone, TV, console — goes out through the same public address. From a website’s point of view, all that traffic comes from one place.
- It usually changes. Most home connections get a dynamic public address that your provider can rotate when the router restarts or on its own schedule. A fixed public address is normally a paid business option.
- It carries a rough location and an owner. Public addresses are allocated in blocks to organisations, and those blocks are published. That is how a website can tell which country you are in, and whether the address belongs to a home internet provider or to a hosting company — the distinction behind residential versus datacenter proxies.
A public address does not identify you personally. It identifies a connection, shared by whoever is on it.
What a private IP address is
Your private IP address is assigned by your own router, usually automatically, and is used only to move data between devices on your side of that router.
It is what your printer, your network drive and your phone use to find each other. It is also what you type when you open your router’s settings page — something like 192.168.1.1.
Private addresses are deliberately reusable. Millions of networks use 192.168.1.10 at this moment, and no conflict arises, because the address never leaves the local network. That reuse is the entire point: it is what stopped the world running out of IPv4 addresses twenty years ago.
The reserved private ranges
Three IPv4 ranges are reserved for private use and will never be assigned to anyone on the public internet:
| Range | Addresses | Where you normally see it |
|---|---|---|
10.0.0.0 – 10.255.255.255 |
~16.7 million | Large corporate networks, some cloud VPCs |
172.16.0.0 – 172.31.255.255 |
~1 million | Mid-sized business networks, Docker defaults |
192.168.0.0 – 192.168.255.255 |
~65,000 | Almost every home router |
Two more ranges are worth recognising, because people often mistake them for private addresses:
127.0.0.1— loopback, meaning “this machine”. It never reaches the network at all, not even your router.169.254.x.x— a self-assigned address a device gives itself when it failed to get one from the router. Seeing this usually means something is broken.
If you want to understand how these ranges are written in the compact 10.0.0.0/8 notation, that is CIDR notation, and it describes a block rather than a single address.
How the two are connected: NAT
Your router does the translation, through a mechanism called NAT — Network Address Translation. It works like the building’s mailroom.
When your laptop at 192.168.1.23 requests a web page, the router rewrites the outgoing packet so it appears to come from the public address, and records a note: this conversation belongs to 192.168.1.23. When the reply arrives at the public address, the router reads its note and forwards the reply to the right device.
Two consequences follow directly:
- Outbound works, inbound does not. You can reach any site; no site can start a connection to your laptop, because it has no way to address it. This is why hosting a server at home needs explicit port forwarding.
- A website sees one address for your whole network. It cannot tell your laptop from your phone by IP alone.
Many internet providers now add a second layer of the same thing, called CGNAT, where a few hundred customers share one public address. On such a connection, “your” public IP is not yours either.
How to find both addresses on your own machine
The two addresses are found in two completely different places. That fact alone tells you they are different things.
Your private address comes from your own operating system:
# Windows
ipconfig
# macOS or Linux
ifconfig
# or
ip addr
Look for an address starting with 192.168., 10. or 172.16–31. on your active adapter.
Your public address can only come from outside, because your machine does not know it. You have to ask something on the internet what it sees:
curl https://api.ipify.org
That command prints one line: the address the server observed your request arriving from.
Now run the same command through a proxy and compare:
curl -x http://user:pass@proxy-host:port https://api.ipify.org
The second result is different. Run ipconfig again, though, and your private address has not moved at all. That is the whole lesson of this article in two commands.
Side-by-side comparison
| Public IP address | Private IP address | |
|---|---|---|
| Assigned by | Your internet provider | Your own router |
| Unique | Globally, while you hold it | Only within your network |
| Reachable from the internet | Yes | No |
| Visible to websites | Yes | No |
| Typical value | 203.0.113.45 |
192.168.1.23 |
| How you find it | Ask an outside server | Ask your own OS |
| Changed by a proxy | Yes | No |
| Carries a location | Roughly, via published allocation data | No |
What this means when you use a proxy
A proxy sits on the public internet and makes requests for you. The target site therefore records the proxy’s public address instead of yours. Everything else about your network is untouched.
Three practical consequences:
1. Only the public address changes. Your private address, your router and your local network behave exactly as before. If a local resource stops working after you configure a proxy, the cause is that your local traffic is now being sent to the proxy too — see the bypass list note below, not the IP addresses themselves.
2. Location checks read the proxy’s public address. When you choose an exit in Germany to see German pricing, the site reads a public address allocated to a German network. Your private 192.168.x.x plays no part in that decision.
3. Your choice of proxy type is a choice about what kind of public address you get. A residential proxy gives you a public address from a home internet provider’s block; a datacenter proxy gives you one from a hosting company’s block. Both are public addresses. The difference is who the block is registered to, and that is public information any site can look up.
One configuration detail follows from all this: most proxy settings include a bypass list, and it should contain your private ranges and localhost. There is no point sending a request for your own network drive out to a server in another country — it would fail anyway, since the proxy cannot reach a private address inside your house.
Four mistakes this explains
- “I set a proxy but
ipconfigshows the same address.” Correct, and expected.ipconfigreports your private address, which a proxy never touches. Check withcurl https://api.ipify.orgthrough the proxy instead. - “I whitelisted my IP with the provider and authentication still fails.” You probably submitted the private address from
ipconfig. IP whitelisting needs your public address — and if it is dynamic, it will stop matching the next time your provider changes it. - “Two colleagues get different results from the same office.” If both are on the office network, both share one public address, so the cause is not the IP — it is cookies, account state or language settings.
- “My home drive became unreachable after configuring the proxy.” Local traffic is being routed to the proxy. Add
192.168.0.0/16,10.0.0.0/8,172.16.0.0/12andlocalhostto the bypass list.
FAQ
Q1. Can two devices have the same private IP address?
A. Not on the same network — your router prevents that. But devices on two different networks very commonly hold the same private address, and that causes no problem at all, because the address never travels between them.
Q2. Is a private IP address more secure?
A. It is not reachable from the internet, which removes one class of risk. It is not security in itself: anything already on your network, or any software running on your machine, can reach it normally.
Q3. Does IPv6 still have private addresses?
A. IPv6 has a similar concept for local-only use, but because there are enough IPv6 addresses to give every device a globally routable one, the public/private split is far less central than it is with IPv4. Note that YiluProxy does not provide IPv6 exits.
Q4. Which address does a website actually log?
A. The public address its server observed the connection arriving from — your public address without a proxy, the proxy’s public address with one.
Q5. Why does a site sometimes show a city 50km away?
A. Location comes from databases mapping address blocks to places, which are approximations that lag behind reality. Country level is usually reliable; city level often is not.
Change the address a site actually sees
Your private address is yours to keep. If you need the public one to come from a specific country or city, that is what a proxy is for. New users can try rotating residential, static residential, datacenter or mobile exits before deciding which fits.
(This article explains general IP addressing concepts defined in public internet standards. Address ranges and commands were verified at the time of writing, October 2026.)