VPN vs Proxy: How They Change Your IP Address

A VPN and a proxy both make websites see an IP address that isn't yours, but they get there differently: a VPN tunnels all of your device's traffic through an encrypted connection, while a proxy usually handles just one application's traffic, and often skips encryption entirely. Tor goes further still, routing traffic through three separate relays so that no single one ever knows both who you are and where you're headed.

Which one you actually need comes down to what you're trying to hide, and from whom. This guide walks through how each changes your visible IP address, what it does and doesn't protect, and the leaks that can quietly undo the whole thing.

How websites see your IP address

Every TCP or UDP connection carries a source IP address along with it. With no intermediary in the picture, that's just the public address your ISP assigned your router — the same one shown on the What's My IP Number page. A website, game server or mail server sees it on every connection, and from it can work out an approximate location and your ISP.

VPNs, proxies and Tor all share the same basic trick: your traffic goes first to an intermediary server, and that server is what actually opens the connection to the destination. The destination only ever sees the intermediary's IP, never yours. Where they differ is how much traffic gets redirected, whether it's encrypted along the way, and who you end up having to trust.

How a proxy works

A proxy is simply a server that makes requests on your behalf. Applications need to be configured to use it, either one by one or through the operating system's proxy settings — which plenty of programs respect, though not all of them.

HTTP and HTTPS proxies

An HTTP proxy understands web requests directly. For plain http:// pages it receives the entire request, so it's free to read, cache or modify whatever it likes. For https:// sites, though, the browser sends a CONNECT example.com:443 request and the proxy just relays the encrypted TLS stream as-is. That means the proxy learns which host you're visiting, but can't actually read the pages themselves.

SOCKS5 proxies

SOCKS5 (RFC 1928) operates a layer below HTTP and forwards arbitrary TCP connections, UDP too if needed. It doesn't care which protocol rides on top, which makes it handy for apps beyond just browsers — but it adds no encryption of its own, worth remembering.

Transparent and forwarding proxies

Some proxies get installed by the network itself rather than by users — corporate web filters or school content filters, for instance. A lot of them add headers like X-Forwarded-For: 203.0.113.50 or Forwarded: for=203.0.113.50 that pass your original IP straight through to the destination anyway. A proxy doing that hides nothing from the website at all. Proxies that strip those headers out instead are often called anonymous proxies.

How a VPN works

A VPN client sets up a virtual network interface on your device and rewrites the routing table so traffic flows into an encrypted tunnel bound for the VPN server. That server decrypts it and forwards it out to the internet under its own IP address. Since the routing itself happens inside the operating system, every app gets covered automatically — games, mail clients, background updates, all of it, no extra setup needed.

The common VPN protocols you'll run into:

  • WireGuard: a modern, compact protocol using UDP, built around a fixed set of current cryptographic primitives.
  • OpenVPN: a mature TLS-based protocol that can run over UDP or TCP, including TCP port 443 — handy on networks that lock things down.
  • IKEv2/IPsec: built into most operating systems already, and particularly good at reconnecting cleanly when a phone hops between Wi-Fi and mobile data.

Most VPN apps default to a full tunnel, pushing everything through the VPN. Split tunnelling lets you carve out chosen apps or destinations to bypass it instead, which is convenient, sure, but it also means those particular connections show your real IP after all.

How Tor differs

Tor wraps traffic in three layers of encryption, then sends it through three volunteer-run relays: a guard, a middle relay and an exit. Each relay peels off just one layer and only ever knows the hop immediately before and after it. The guard sees your IP but not your destination; the exit sees the destination but not your IP. Websites, for their part, only ever see the exit relay's address.

That design means you don't have to trust any single provider, which is genuinely valuable — but it comes at a cost: Tor is noticeably slower, and since the list of exit relays is public, plenty of sites block or challenge Tor users outright. Traffic between the exit and an unencrypted http:// site, by the way, is readable by whoever operates that exit.

Side-by-side comparison

ProxyVPNTor
Traffic coveredOnly apps configured to use itAll traffic on the device (unless split tunnelling)Only apps using Tor, usually Tor Browser
Encryption to the intermediaryUsually none (HTTPS sites stay encrypted end to end)Yes, for all tunnelled trafficYes, layered across three relays
IP seen by websitesProxy server's IPVPN server's IPExit relay's IP
Who can link you to your browsingThe proxy operatorThe VPN providerNo single relay, by design
SpeedFastFast to moderateSlow
Typical useWeb scraping, testing geo-content, corporate filteringPublic Wi-Fi, privacy from your ISP, remote accessStrong anonymity, avoiding censorship
Note: A VPN does not make you anonymous — it's worth saying plainly. All it really does is move trust from your ISP over to the VPN provider, who can see the same connection metadata your ISP could. Read the provider's privacy policy and look for independent audits before you lean on it too heavily.

What none of them hide

Changing your IP address only hides one identifier among many. Websites can still recognise you through:

  • Accounts and cookies. Sign in anywhere, and the site knows exactly who you are, regardless of IP.
  • Browser fingerprinting. Screen size, fonts, time zone and the user agent string, taken together, can be surprisingly distinctive.
  • Time zone and language mismatches between your browser and where the IP appears to be located.

For a broader look at the options, mobile data and public Wi-Fi included, see how to hide your IP address.

Leaks to watch for

A VPN or proxy can be doing its job perfectly fine while your real IP or browsing still escapes through some other route entirely:

  • DNS leaks: name lookups slip off to your ISP's resolver instead of going through the tunnel, revealing exactly which sites you visit.
  • WebRTC leaks: the browser gives up your real public IP through STUN requests that sidestep a browser proxy or split tunnel entirely.
  • IPv6 leaks: the VPN only tunnels IPv4, so IPv6-capable sites still see your ISP-assigned IPv6 address regardless.
  • Reconnect leaks: for a few seconds after the VPN drops, traffic keeps flowing normally — in the clear. A kill switch, which blocks traffic while the tunnel is down, is what prevents this.

Our guide to DNS and WebRTC leaks walks through each one in detail.

How to check that it is working

  1. With the VPN or proxy switched off, note your IP address and ISP on the What's My IP Number page first.
  2. Connect, reload the page, and check that both the IP and the ISP have actually changed.
  3. Run the WebRTC leak test. None of the candidates should show your original public IP.
  4. Run the IPv6 test too. If it turns up an IPv6 address from your own ISP, IPv6 is slipping past the tunnel.

Frequently asked questions

Is a proxy safer than a VPN?

Generally, no. Most proxies don't encrypt traffic between you and the proxy at all, and they only cover apps you've specifically configured. A proxy works fine for changing your apparent location in one browser, but on an untrusted network, a VPN is the better pick.

Can I use a VPN and a proxy together?

Yes, you can. Traffic leaves your device through the VPN tunnel first, and the browser then talks to the proxy through that tunnel. Websites end up seeing the proxy's IP. It adds complexity and latency for your trouble, though, and rarely buys you much extra privacy.

Does incognito mode hide my IP address?

No, it doesn't. Private browsing only stops the browser from saving history and cookies locally on your machine. Websites and your ISP still see your real IP address exactly as before.

Why do some websites block VPN and proxy IPs?

Because so many people share each VPN or proxy address, it tends to accumulate abuse reports over time, and services bound by regional licensing restrictions block known VPN ranges outright. IP databases flag these addresses as hosting or anonymiser networks.

Essayez vous-même

Mettez ce guide en pratique avec nos outils gratuits.

Commentaires

Partagez une astuce, posez une question ou racontez comment l’outil a fonctionné pour vous.

À lire aussi

Copié dans le presse-papiers