VPN vs proxy: the difference and which one you need

A proxy passes on the traffic of a program you pointed at it, and many proxies add no encryption of their own. A VPN takes the traffic of the whole device, DNS and UDP included, and encrypts it up to the server. Take a proxy when one browser or one script needs another address. Take a VPN when you are on someone else's Wi-Fi, when apps have no proxy setting, or when the provider shouldn't see where you go. Both change the address sites see, and neither makes you anonymous.

Updated

Veli is the VPN side: an adapter, not a proxy setting. On a computer Veli raises a virtual network adapter and takes the whole system's traffic, TCP and UDP.

Download Veli for free
On this page

Which one to take

  • Another address in one browser

    TakeA proxy

    WhyThe rest of the device keeps its own connection and speed

  • A script, curl or git through another address

    TakeA proxy

    WhyThe setting lives in the command and needs no administrator rights

  • Café, hotel or airport Wi-Fi

    TakeA VPN

    WhyIt covers everything, also programs you forgot about

  • Games and calls

    TakeA VPN

    WhyThey run on UDP, and most proxies carry only TCP

  • Apps on a phone or TV

    TakeA VPN

    WhyMost apps have no proxy setting and ignore the system one

  • Your provider shouldn't see which sites you open

    TakeA VPN, or a proxy with encryption

    WhyA plain HTTP or SOCKS proxy shows the site's name to everyone on the way

  • Access to the office or home network

    TakeA VPN

    WhyA proxy opens single connections, not a network

How they work

A proxy is an address and a port. A program connects to it and asks: open example.com, port 443, for me. The proxy opens its own connection and passes the bytes both ways. The program has to know how to ask, so each one is set up separately, or through a system setting that only some programs read. HTTP and SOCKS5 are the two languages they speak.

A VPN creates a network adapter. The system sends packets into it the way it would into Wi-Fi, and programs notice nothing. The client encrypts the packets and carries them to the server, which sends them on from its own address. That is why a VPN needs administrator rights or the system's permission, and a proxy doesn't.

VPN and proxy side by side

  • What goes through

    HTTP or SOCKS proxyPrograms that were told about it

    VPNThe whole device, or what the client's rules choose

  • TCP

    HTTP or SOCKS proxyYes

    VPNYes

  • UDP: games, calls, QUIC

    HTTP or SOCKS proxyRarely: only SOCKS5 can, and few programs use it

    VPNYes, if the protocol carries it

  • DNS

    HTTP or SOCKS proxyDepends: the proxy or your own computer may look names up

    VPNThrough the tunnel in a properly set up client

  • Encryption to the server

    HTTP or SOCKS proxyNone in plain HTTP and SOCKS5; TLS in an HTTPS proxy

    VPNYes, always part of it

  • Where it is set

    HTTP or SOCKS proxyIn every program, or in the system settings

    VPNOne client

  • Rights

    HTTP or SOCKS proxyOrdinary user

    VPNAdministrator, or the system's VPN permission

  • If it breaks

    HTTP or SOCKS proxyThe program shows an error, the rest works

    VPNThe device may go on without it: for that there is a kill switch

  • Work for the processor

    HTTP or SOCKS proxyAlmost none

    VPNEncryption; on a computer you rarely notice

What the network and the site see

On https:// pages the contents are encrypted between you and the site in all three cases. What differs is who sees the list of sites. Somebody at the far end always sees it, so the question is whom you trust. A public proxy from a list on the internet is the worst choice here: nobody knows who runs it.

A site can guess both. Server addresses belong to hosting companies, and databases list them, hence messages like “proxy or VPN detected”. Changing one for the other rarely helps, because the address is what they look at.

  • Your provider or the Wi-Fi owner

    Plain proxyThe proxy's address and the name of every site you ask it for

    Proxy inside TLSThe proxy's address only

    VPNThe server's address and the amount of traffic

  • The proxy or the VPN server

    Plain proxyWhere you go; on http:// pages the contents too

    Proxy inside TLSThe same

    VPNThe same

  • The site

    Plain proxyThe proxy's address

    Proxy inside TLSThe proxy's address

    VPNThe server's address

  • The site, besides the address

    Plain proxyYour time zone, language, cookies and account

    Proxy inside TLSThe same

    VPNThe same

Where the line is blurred

  • VLESS, Trojan, Shadowsocks, VMess are proxy protocols with encryption. A client that puts them behind a TUN adapter gives you a VPN for the whole system; the same client in “system proxy” mode gives you a proxy.
  • A “VPN” in a browser extension is a proxy for that browser. Other programs go past it.
  • SSH with -D is a SOCKS5 proxy inside an encrypted connection: no VPN, but the way to the server is closed.
  • A firewall is neither. It allows or forbids connections and doesn't change your address.
  • Tor is a chain of three relays for TCP: slower than both, and nobody on it sees both ends.

Check what you really have

The ip= line in the answer is the address a site sees. If the two commands give different addresses, the first program goes around the proxy. Put your proxy's port in place of 1080.

Any system (curl.exe in PowerShell)
curl -s https://1.1.1.1/cdn-cgi/trace
curl -s -x socks5h://127.0.0.1:1080 https://1.1.1.1/cdn-cgi/trace

The first goes the way the system sends it, the second through the proxy. With a VPN for the whole system the first already shows the server's address.

Windows: PowerShell
Find-NetRoute -RemoteIPAddress 1.1.1.1 | Select-Object InterfaceAlias, NextHop

A tunnel's name in InterfaceAlias means a VPN. Wi-Fi or Ethernet means packets leave as usual, and at most some programs use a proxy.

macOS, Linux: Terminal
env | grep -i _proxy

Terminal programs read these variables. An empty answer means curl, git and pip go direct unless told otherwise.

Sources

How we write and check

In Veli

Veli is the VPN side: an adapter, not a proxy setting

On a computer Veli raises a virtual network adapter and takes the whole system's traffic, TCP and UDP. It doesn't write a system proxy, so there is nothing to set up in browsers and programs. The servers themselves can be proxy protocols: vless://, vmess://, trojan://, ss://, hysteria2:// and tuic:// links, next to WireGuard, AmneziaWG, OpenVPN (on Windows and Linux) and Veli's own. A socks5:// address is not among the links the app reads.

To get what people use a proxy for, one program or a few sites through the server, choose “Through the VPN only…” in Apps and sites. Rules by app and by site work on VLESS, VMess, Trojan, Shadowsocks, Hysteria2, TUIC and Veli profiles; WireGuard, AmneziaWG and OpenVPN take IP addresses.

FAQ

Is a VPN better than a proxy?

For the whole device and for someone else's Wi-Fi, yes: it encrypts and leaves no programs out. For one browser or a script a proxy is simpler and lighter.

Does a proxy hide my IP address?

From sites opened through it, yes. Programs that don't use the proxy, WebRTC in a browser and often DNS still show your own.

Is SOCKS5 safer than a VPN?

No. SOCKS5 has no encryption of its own, so the network sees which sites you ask for. Inside SSH or TLS the way to the server is closed, but only for programs that use it.

SOCKS5 or a VPN for torrents?

A torrent program behind SOCKS5 may still announce itself over UDP past the proxy, so your address shows. A VPN takes all of its traffic; keep the kill switch on.

Can I use a VPN and a proxy at the same time?

Yes. The proxy then works inside the tunnel: sites see the proxy's address, the proxy sees the VPN server's. It gets slower, and there are two things to break instead of one.

Why does a site say “proxy or VPN detected”?

It found your address in a database of hosting networks. Another server may help, the other kind of program usually doesn't.

The whole device, with no proxy fields to fill

Veli is a free client for Windows, macOS, Linux and Android. It takes the system's traffic, and rules decide which sites and apps go through the server.