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 tooProxy 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
-Dis 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.
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/traceThe 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.
Find-NetRoute -RemoteIPAddress 1.1.1.1 | Select-Object InterfaceAlias, NextHopA 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.
env | grep -i _proxyTerminal programs read these variables. An empty answer means curl, git and pip go direct unless told otherwise.