The main difference in proxy vs VPN is scope, meaning how much of your traffic each one handles. A proxy routes traffic from the apps you choose and lets you control the exit IP, the address sites see, per request. By default, a VPN runs a full tunnel, routing all device traffic through one server. Residential VPNs work the same way but use IPs from consumer ISPs instead of data centers. We sent the same requests through Evomi's residential proxy and Cloudflare's WARP VPN, then compared the results.
With a proxy, encryption depends on the port you connect to. Between your app and the proxy, an HTTPS proxy port encrypts your proxy username, password, and each hostname you visit. On an HTTP proxy port, the same details cross the network in cleartext (readable text), even when the site uses HTTPS. A café Wi-Fi operator or your ISP can then read them.
This guide compares the proxy and the VPN on encryption, exit IP, and DNS, and shows when to use a proxy, a VPN, or both.
TL;DR
- Use a proxy when the exit IP matters, and use a VPN for the whole device. Many setups need both.
- HTTPS proxy ports encrypt credentials and target hostnames. Your network sees only a TLS connection to Evomi's HTTPS proxy port.
http://andsocks5URLs send credentials in cleartext. - HTTP and HTTPS proxies resolve hostnames, so your ISP's resolver does not see them. With SOCKS5, use
socks5h://. - One command-line flag stops Chromium's WebRTC IP leak. Add
--force-webrtc-ip-handling-policy=disable_non_proxied_udp. - Evomi's residential proxy rotates exit IPs per request by default. Over 10 requests, it used 10 exit IPs, and the VPN used one.
VPN vs proxy: the differences
The table compares a direct connection, an HTTP proxy port, Evomi's HTTPS proxy port, and a VPN, all tested on the same laptop. The Scope row describes how each setup works. Every other cell is measured, except the DNS resolver that VPN apps set. The VPN ran as a local proxy for one test app, so that detail comes from how VPN apps work.
No proxy | HTTP proxy port | HTTPS proxy port (Evomi port 1001) | VPN (WireGuard) | |
|---|---|---|---|---|
Scope | All apps | Per app (apps you configure) | Per app (apps you configure) | System-wide by default, through a VPN client |
Exit IP | Your ISP's IP | A residential IP, rotated per request by default (10 unique IPs in 10 requests) | Same as HTTP proxy | The VPN server's IP, the same while connected (1 IP in 10 requests) |
Exit IP control | None | Country targeting or a sticky session (one IP across several requests), set per request with options added to the password, such as | Same as HTTP proxy | One exit server while connected |
Encryption | Only HTTPS traffic | HTTPS traffic stays encrypted. The | All traffic to the proxy, credentials included (TLS 1.3) | All traffic to the VPN server (WireGuard) |
What your network sees | Every hostname you visit (in DNS queries and the TLS Server Name Indication, or SNI) | The proxy, each target hostname, and your credentials (Base64-encoded, easy to decode) | Only a TLS connection to | WireGuard (UDP) packets to one VPN server. DNS stays in the tunnel when the VPN sets a DNS resolver |
DNS resolution | Your configured resolver, usually your ISP's | The proxy (remote DNS) | The proxy (remote DNS) | The VPN's resolver, which VPN apps normally set. A hand-written WireGuard config needs a |
When to use a proxy, a VPN, or both
The choice depends on whether one job needs its own exit IP or the whole device needs a tunnel.
Job | Use |
|---|---|
Web scraping, price and SERP monitoring, and ad verification | A rotating residential proxy on the HTTPS proxy port |
Browser automation with Playwright or Puppeteer | A proxy, plus the WebRTC flag, and the exit country's time zone and locale for localized pages |
Manual geo-testing from one location | A sticky residential proxy session in the browser, or a residential VPN |
Staff browsing on public Wi-Fi | A VPN |
Apps without proxy support, or UDP traffic | A VPN, or Static Residential proxies for UDP through a residential IP |
Scrapers on a company network with a full-tunnel VPN | A proxy, routed through the VPN like all other traffic |
Use a proxy when the job depends on the exit IP. A proxy lets you control the exit IP and country per request, so each job gets the IP it needs. For scraping jobs, collect only public pages, follow each site's robots.txt, and keep the request rate low. Also block images and other large files. Because Evomi's Core Residential plans are bandwidth-based, meaning billed by the data you use, blocking those files gets you more pages from each plan.
Use a VPN for system-wide coverage. System-wide coverage includes apps without proxy support, UDP traffic, and staff on public Wi-Fi. If a job needs UDP through a residential IP, Evomi supports it on Static Residential proxies, which accept UDP, HTTP, and SOCKS5.
Use a residential VPN when a person needs one residential IP system-wide. Staff who do manual geo-testing from one location are a typical case. A residential VPN usually keeps one IP while connected, so it suits manual browsing, not scraping.
Use both at the same time when different jobs need different tools. Scrapers use the proxy, and staff devices use the VPN.
Chain a proxy through a company VPN when automated traffic runs on a work network. A proxy still works through a full-tunnel corporate VPN. Evomi authenticates with a username and password, so the login works from the VPN's IP as well. Without the proxy, sites would see your company's public IP on that automated traffic. Use the HTTPS proxy port so the proxy credentials stay encrypted on the company network. Check your company's IT policy first.
With a full-tunnel VPN, proxy traffic is routed through the VPN, like all other traffic. Some VPN tools, such as wireproxy for WireGuard, run as a local SOCKS5 proxy instead. In that case, chain the two in curl with --preproxy for the VPN and -x for the proxy. Through WARP, all 15 chained requests to example.com worked, and example.com saw the proxy's exit IP. Expect the VPN to add its own latency.
Check your setup for leaks
Before you rely on a proxy or VPN setup, check these four settings:
- The proxy URL starts with
https://, which on Evomi means port 1001. - For clients that only support SOCKS5, the URL starts with
socks5h://, so the proxy resolves hostnames (remote DNS). The SOCKS5 login still crosses the network in cleartext. - Chromium launches with
--force-webrtc-ip-handling-policy=disable_non_proxied_udp. - Your VPN sends DNS through the tunnel. A DNS leak test such as bash.ws shows whether it does.
How a proxy server and a VPN handle a request
A proxy server sends requests for you. For an https:// URL, your app sends a CONNECT request to open a tunnel through the proxy. By default, the proxy forwards the TLS-encrypted traffic but cannot decrypt it. A residential proxy routes your request through a consumer ISP connection, so sites see a residential IP.
A VPN works at the network layer (layer 3). By default, the operating system routes every IP packet, including UDP, into an encrypted tunnel. The VPN server then decrypts each packet and forwards it from the server's own IP.
Residential VPN vs residential proxy
A residential VPN and a residential proxy can both give you a residential IP from a consumer ISP. You may also see residential VPNs sold as "residential IP VPNs." Here is how the two compare on scope, encryption, and control.
- A residential VPN works system-wide. By default, it routes all device traffic through one residential IP. A residential proxy works per app, so you choose which apps or scripts use it.
- Both can encrypt your connection. A VPN encrypts the tunnel to its server. Evomi's residential proxy does the same on its HTTPS proxy port.
- A residential proxy gives you per-request control. A residential VPN usually keeps one exit IP while connected. With a residential proxy, each request can get a new IP. Requests can also share one IP through a sticky session (
_session-<id>, with_lifetime-<minutes>for its length), or target a country, city, or ISP network (ASN). You add each option to the password, as inPASSWORD_session-abc123.
Residential proxy IPs come from real people's devices and connections, so how a provider sources them matters. Ask any provider how it gets the owners' consent and how it pays them. Evomi's sourcing principles answer both questions. Owners opt in through Evomi's own or partner apps and are paid through PayPal, gift cards, or some cryptocurrencies. Evomi is also a member of the Ethical Web Data Collection Initiative (EWDCI).
How we tested
We ran the tests from 15 to 23 November 2026 on a MacBook (macOS 27.2.1), over a residential fiber connection in Lucknow, India. The main tools were curl 8.23.0 and Playwright 1.65.1 with Chromium 159. All tests used public pages and test endpoints, through our own Evomi account.
Setup | What ran |
|---|---|
Proxy | Evomi Core Residential, one set of credentials for HTTP on port 1000, HTTPS (TLS to the proxy) on 1001, and SOCKS5 on 1002 for the DNS test |
VPN | Cloudflare WARP, a widely used free VPN (WireGuard). Cloudflare's own routing sent the connection to a Cloudflare point of presence (PoP) in Marseille. The wireproxy tool made the tunnel available as a local SOCKS5 proxy, so the same tests could run through it |
A local TCP relay on the laptop sat between the apps and the proxy and saved every byte the apps sent. A UDP relay did the same for the VPN's WireGuard packets. A café Wi-Fi operator or your ISP, as on-path observers, can see the same bytes. To check that the proxy exit IPs were residential, we looked up 10 rotating exit IPs with Evomi's IP lookup tool. They included home ISPs such as Comcast, AT&T, BT, and Shaw, and the mobile carrier T-Mobile.
For latency, each setup fetched each of three target sites 30 times. The setups took turns in random order, so timing did not favor any setup.
One limit applies to the VPN. It ran as a local proxy for one app only. Its system-wide scope and DNS default come from how VPN clients normally work, not from this test. Residential VPNs were not part of the test, so the residential comparison is based on how these services work.
What a proxy and a VPN encrypt, and what your network can still see
The HTTP proxy port, the HTTPS proxy port, and the VPN start encryption at different points on the path:

Where encryption starts. HTTPS traffic stays encrypted end to end on all three.
On any HTTP proxy port, HTTPS traffic stays encrypted, but the CONNECT request that opens the tunnel is sent in cleartext. To see it, run curl -v through an HTTP proxy port:
curl -v -o /dev/null -x http://USERNAME:PASSWORD@PROXY_HOST:PORT https://example.comThe command prints what goes to the proxy before the TLS handshake starts:
* Proxy auth using Basic with user 'USERNAME'
> CONNECT example.com:443 HTTP/1.1
> Host: example.com:443
> Proxy-Authorization: Basic <base64 of USERNAME:PASSWORD>
> User-Agent: curl/8.23.0
> Proxy-Connection: Keep-Alive
>
< HTTP/1.1 200 Connection establishedBase64 is an encoding, not encryption, so any on-path observer can decode your proxy credentials, including targeting options such as _country-US_session-abc123. The target hostname is readable too, in the CONNECT line and the Host header.
On an HTTP proxy port, one command decodes the credentials. On Evomi's HTTPS proxy port, the captured traffic contains none of them:

What the client sent for the same request, captured on the HTTP and HTTPS proxy ports with placeholder credentials. $PLAIN is the HTTP proxy URL, $TLS is the HTTPS proxy URL, and $LOGIN holds the placeholder credentials.
On Evomi's HTTPS proxy port, your app sends CONNECT and the credentials inside TLS. Your network sees only a TLS connection whose SNI is core-residential.evomi-proxy.com. It sees no target hostname and no credentials. The proxy network itself still sees each target hostname, just as a VPN provider sees each destination. curl -v still prints the Proxy-Authorization line on the HTTPS proxy port. The printed header is not a leak. In verbose mode, curl shows headers before TLS encrypts them. The Proxy certificate: line just before the header confirms the TLS connection to the proxy.
On the VPN, your network sees WireGuard UDP packets to the VPN server's IP. DNS stays in the tunnel when the VPN sets a DNS resolver, as VPN apps normally do.
To check your own proxy setup, read the proxy URL scheme, the part before ://. https:// sends the credentials inside TLS. http://, socks5:// (RFC 1929), and socks5h:// send them in cleartext.
The credentials cross every network between you and the proxy, not only your Wi-Fi, so make the HTTPS proxy port your default. Clients without HTTPS-proxy support, such as Java's HttpURLConnection, can still use it through a local forwarding proxy, a small proxy on the same machine.
Connecting your HTTP client to the HTTPS proxy port
The HTTPS proxy port (1001) uses the hostname core-residential.evomi-proxy.com. The proxy's wildcard certificate covers *.evomi-proxy.com, so TLS certificate verification passes with no extra setup.
The dashboard's Proxy Generator shows that hostname and port when you pick HTTPS:

Evomi's Proxy Generator with HTTPS selected, showing the hostname and port 1001 (credentials blurred).
The Proxy Generator lists the hostname, port, username, and password. Combine them into one proxy URL in the form https://USERNAME:PASSWORD@core-residential.evomi-proxy.com:1001. If your current proxy URL uses another hostname, such as rp.evomi.com, change it to core-residential.evomi-proxy.com when you switch to port 1001. That hostname matches the TLS certificate.
These clients all connected to the HTTPS proxy port:
Client (version tested) | How it connected |
|---|---|
curl 8.23.0 | With an |
Python requests 2.34 (urllib3 2.8) | With an |
Python httpx 0.28, aiohttp 3.14, Scrapy 2.20 | With an |
Node.js 25 | With an |
Chromium 159 through Playwright 1.65 | With an |
Java | Through a local forwarding proxy (gost 3.3) |
In Python requests, an https:// proxy URL encrypts the connection to the proxy. The "http" and "https" keys in proxies name the target URL's scheme, not the connection to the proxy:
import requests
proxy = "https://USERNAME:PASSWORD@core-residential.evomi-proxy.com:1001"
requests.get("https://example.com", proxies={"http": proxy, "https": proxy})If your password contains @, :, or /, URL-encode it with urllib.parse.quote(password, safe="") first.
Java's built-in HttpURLConnection needs a local forwarding proxy, because the JDK has no HTTPS-proxy support. Plain HTTP proxy ports have a second problem in Java. By default, the JDK disables Basic authentication for HTTPS tunneling (jdk.http.auth.tunneling.disabledSchemes), so requests get a 407 Proxy Authentication Required response. Clearing that property makes the HTTP proxy port work, but the login then crosses the network in cleartext. The open-source tunneling tool gost works as the local forwarding proxy that Java needs. Java connects to gost on 127.0.0.1 over plain HTTP, and gost forwards every request to the HTTPS proxy port over TLS:
gost -L http://127.0.0.1:8080 -F "https://USERNAME:PASSWORD@core-residential.evomi-proxy.com:1001?secure=true&serverName=core-residential.evomi-proxy.com"With gost running, set Java's proxy host to 127.0.0.1 and the proxy port to 8080. The rest of the Java code stays the same. Keep secure=true in -F and the 127.0.0.1 bind address in -L. Without them, gost skips TLS certificate verification and listens on all interfaces as an open proxy. On a shared machine, other users can see command-line arguments, including passwords, in ps. Put the password in a gost config file, as the gost documentation shows, and start gost with gost -C.
DNS leaks: which resolver sees your lookups
Every DNS query tells the resolver which hostname you are about to visit. Each lookup in the table used a unique hostname in a test domain whose own DNS server, its authoritative nameserver, logs every resolver that asks. You can run a similar DNS leak test for free at bash.ws.
Setup | Resolvers that queried the hostname | Did the ISP's resolver see it? |
|---|---|---|
No proxy | The ISP's resolvers in India | Yes |
Evomi HTTP or HTTPS proxy port, or SOCKS5 with | The proxy's resolvers, such as Cloudflare's and Google's public resolvers, Evomi's gateway resolvers, and sometimes the exit ISP's | No |
SOCKS5 with | The ISP's resolvers in India | Yes |
VPN (wireproxy), config sets a | Cloudflare resolvers in France | No |
VPN (wireproxy), no | The ISP's resolvers in India | Yes |
In 20 more proxy sessions in four countries, the ISP's resolver again saw no queries.
A proxy that receives the hostname resolves it itself, so the query does not go to your ISP's resolver. HTTP, HTTPS, and socks5h:// proxy URLs all send the hostname to the proxy. When you route through SOCKS5, socks5:// makes curl resolve the hostname locally and send the proxy an IP address. With socks5h://, curl sends the hostname and the proxy resolves it (remote DNS). Python requests handles the two schemes the same way curl does.
On the VPN side, wireproxy tunnels DNS queries only when its config sets a DNS resolver. Otherwise it uses the system resolver, even though the other traffic uses the tunnel.
Browsers have a few other DNS leak paths, and each has a fix.
Browser settings to check behind a proxy: WebRTC, time zone, locale
Chromium routes page traffic through its proxy settings, but by default WebRTC can bypass the proxy over UDP. WebRTC is the browser feature behind audio and video calls. With Chromium and Playwright behind a Brazilian residential IP, WebRTC still showed the real IPv4 and IPv6 addresses to the page.
To check your own browser, set the proxy and open the Console tab in DevTools on any page. Chrome may ask you to type allow pasting first. Then paste this STUN request, which asks a public STUN server for the browser's public IP:
const pc = new RTCPeerConnection({ iceServers: [{ urls: 'stun:stun.l.google.com:19302' }] });
pc.createDataChannel('');
pc.onicecandidate = (e) => e.candidate?.candidate.includes('srflx') && console.log('WebRTC public IP:', e.candidate.candidate.split(' ')[4]);
pc.createOffer().then((o) => pc.setLocalDescription(o));If the snippet prints your real public IP, WebRTC is leaking outside the proxy. A leak looks like this in the console:

Chromium behind a proxy. The page uses a Brazilian exit IP, and WebRTC shows the real IPs (blurred).
One command-line flag blocks non-proxied UDP, which stops the WebRTC leak. Launch Chromium with --force-webrtc-ip-handling-policy=disable_non_proxied_udp, then run the snippet again, and it prints no public IP.
Chromium also keeps your system time zone and locale by default. Behind Brazilian and Japanese exit IPs, Chromium still reported the laptop's time zone, Asia/Calcutta, and the laptop's languages in navigator.languages. Pages that adapt to each visitor then show your laptop's local time and language, not the exit country's. When you test localized pages, set Playwright's timezoneId and locale to the exit country. For a Brazilian exit IP, use America/Sao_Paulo and pt-BR. Also use one sticky session for each browser context, so the IP stays consistent.
A hosted (remote) browser can handle these settings for you. Evomi's Scraping Browser runs on Evomi's infrastructure, so WebRTC there cannot leak your real IP. In the test, WebRTC in the Scraping Browser reported the same exit IP that the page used. The Scraping Browser also set the time zone and language to the exit country, so pages rendered as they do for local visitors. With a Japanese exit IP, the page saw the time zone Asia/Tokyo, and ja was the first entry in navigator.languages. Your machine opens only one Chrome DevTools Protocol (CDP) connection to the remote browser, over encrypted WebSocket (WSS). Sites see connections from that browser, not from your machine.
Latency: the time a proxy and a VPN add, and how to reduce it
Through Evomi's residential proxy with connection reuse (keep-alive) and a sticky session, requests took about 0.7 seconds. The 0.7-second figure is the one that matters if your scraper or browser reuses connections. Browsers reuse connections by default. Chromium sent 10 CONNECT tunnels over one HTTP/2 connection to the HTTPS proxy port, so it reused one TLS handshake for all 10 tunnels. Across three runs to example.com with a sticky session, the median after the first request was 685 milliseconds on the HTTP proxy port. On the HTTPS proxy port, the median was 717 milliseconds.
The table shows the full cost without keep-alive, with a new connection for every request, from a laptop in India with no geo-targeting. Each cell shows the median in milliseconds. The number in parentheses is the p90 (90th percentile), meaning 9 in 10 requests were at least that fast. These numbers are higher than the 0.7-second reuse figure, so compare setups within the table.
Target (no keep-alive) | No proxy | HTTP proxy, rotating | HTTP proxy, sticky | HTTPS proxy, rotating | HTTPS proxy, sticky | VPN |
|---|---|---|---|---|---|---|
example.com | 102 (112) | 1,367 (3,388) | 1,415 (1,695) | 1,489 (2,199) | 1,574 (1,740) | 751 (758) |
ip.evomi.com | 128 (202) | 1,309 (2,096) | 1,475 (1,792) | 1,565 (2,204) | 1,553 (1,753) | 749 (764) |
httpbin.io | 1,168 (1,219) | 1,992 (2,890) | 3,031 (3,424) | 2,087 (2,947) | 1,893 (2,089) | 2,407 (2,545) |
Compare setups on the example.com and ip.evomi.com rows. The httpbin.io site was slow even without a proxy.
The proxy columns are slower because of the extra hops, and distance is part of the cost. From India, reaching Evomi's gateway, the server your app connects to, took a median of 207 milliseconds per new connection. The gateway then routed the request through a residential exit node, the residential device whose IP sites see. With no geo-targeting, rotation picked exit nodes in many countries. The VPN path ends at Cloudflare's PoP, with no residential hop in between.
Sticky sessions gave lower tail latency, meaning the slowest requests were faster. The p90 was lower with a sticky session in five of the six sticky and rotating pairs. If your job does not need a new IP for each request, use keep-alive for speed and one sticky session for steadier times.
Final thoughts
Choose between a proxy and a VPN by scope. Use a proxy when an app needs control over its exit IP, and use a VPN when the whole device needs one tunnel. In the test, an HTTPS proxy port protected the credentials and the target hostname from network observers as well as the WireGuard tunnel did. So for traffic you send through an HTTPS proxy port, encryption is not a reason to choose a VPN.
As a next step, move your proxy URLs to the HTTPS proxy port. On Evomi's residential proxies, replace http:// URLs, and socks5 URLs used for web requests, with https://USERNAME:PASSWORD@core-residential.evomi-proxy.com:1001. Take the username and password from the dashboard's Proxy Generator. For Java's built-in client, run the gost forwarder first.
FAQ
Which is better, a VPN or a proxy?
A proxy is better when the exit IP matters, and a VPN is better for protecting the whole device. For scraping or geo-testing, a proxy lets you control the exit IP per request. On an HTTPS proxy port, it also encrypts the credentials and target hostnames. On public Wi-Fi, a full-tunnel VPN that also tunnels DNS protects all device traffic.
Can a proxy be used as a VPN?
Partly. For apps you configure, an HTTPS proxy port encrypts the traffic to the proxy, as a VPN encrypts its tunnel. A system-wide proxy setting routes every app that respects it. Apps that ignore that setting still connect directly, so whole-device coverage needs a VPN.
Do I need a VPN if I have a proxy?
Not for traffic you send through an HTTPS proxy port. On Evomi's HTTPS proxy port, your local network sees only a TLS connection to the proxy, with no target hostname or credentials. In a browser, also block WebRTC leaks. You need a VPN when other apps must also use a different exit IP or need protection on public Wi-Fi.