Proxy basics:
how a proxy server works
A proxy server is an intermediary that makes requests for you. Your app connects to the proxy, the proxy connects to the website, and the website sees the proxy’s IP address instead of yours.
Everything else, from DNS to encryption to which apps are covered, depends on the client and how you set it up. Seven short chapters explain each part, one question at a time.
Without a proxy, the website sees your address, 198.51.100.24. Through a proxy, your app connects to the proxy at 203.0.113.7, the proxy connects to the website, and the website sees 203.0.113.7.
Same request, a different return address. The website replies to the proxy, and the proxy hands the response back to you.
What does a proxy server do?
It relays your traffic. Your client opens a connection to the proxy, the proxy opens its own connection to the destination, and replies travel back the same way. The website only sees the proxy’s address, which is called the exit IP.
That one move explains most of what proxies are used for: checking how a site looks from another country, collecting public web data from many addresses, or keeping a company’s outbound traffic behind one controlled gateway.
A forward proxy sits between you and the website and is chosen and configured by you. A reverse proxy sits between you and the origin server and is run by the website.
- Only configured traffic moves
- A proxy affects the app or request you point at it. Other apps, background services and some DNS lookups can still go direct.
- The exit IP is what sites see
- Location and network lookups run against the exit address, so a site sees the proxy’s country and network, not yours.
- Forward, not reverse
- This primer is about forward proxies, which work for the client. A reverse proxy sits in front of a website, like a CDN or a load balancer, and works for the server.
Go deeper
- GuideWhat Is a Proxy Server? Trace Every Connection StepHTTP forwarding, CONNECT tunnels, SOCKS5, DNS and reverse proxies, one connection at a time.
- GuideWhat Are Backconnect Proxies? One Gateway, Many ExitsHow one gateway address hands out many exit IPs.
- GuideWhat Is a Web Proxy? How URL-Based Browsing WorksThe proxy in a web page, and how it differs from one you configure.
- Free toolWhat is my IP?The address websites see from you right now.
Proxy vs VPN: one app or the whole device
A proxy usually changes the route for one app or one request; a VPN usually tunnels the whole device. Neither makes you private on its own: what is covered depends on settings, DNS handling and whoever runs the server.
Choose by scope. If only a scraper, a browser profile or a test script needs a different exit, a proxy leaves everything else untouched. If every app on a laptop should leave through one encrypted tunnel, that is a VPN’s job.
With a proxy, only the configured browser goes through the proxy; the script and system updates still connect directly. With a VPN, all three travel through one tunnel to the VPN server.
| Aspect | Proxy | VPN |
|---|---|---|
| What changes route | The apps or requests you configure | All device traffic, minus split-tunnel exceptions |
| Encryption | None added by a plain HTTP or SOCKS5 proxy; HTTPS stays encrypted end to end | The tunnel to the VPN server is encrypted |
| DNS lookups | HTTP proxies resolve names themselves; SOCKS5 clients choose local or remote | Usually the VPN’s resolver, unless a lookup leaks around it |
| Typical use | Web data collection, geo testing, per-app routing | Protecting a whole device, reaching a private network |
HTTP proxy or SOCKS5: which one do you need?
Use whichever your client supports for the traffic you send. An HTTP proxy speaks HTTP: it forwards plain web requests and opens CONNECT tunnels for HTTPS. SOCKS5 is a general relay for TCP connections, with optional UDP, and never reads HTTP at all.
For browsing and most scraping both work, because HTTPS passes through either one as an encrypted tunnel. The differences show up at the edges: protocols other than HTTP, UDP, and who looks up the website’s address.
HTTP proxy3 messages
- You to the proxy:
CONNECT example.com:443Names the site and port, with credentials in Proxy-Authorization - The proxy to you:
200 Connection establishedThe proxy has reached the site - Both ways: TLS, end to endEncrypted traffic, relayed untouched
SOCKS56 messages
- You to the proxy: GreetingVersion 5 and the sign-in methods it supports
- The proxy to you: MethodThe proxy picks username and password
- You to the proxy: CredentialsChecked before any request is accepted
- You to the proxy:
CONNECT example.com:443The site as a hostname or an IP address - The proxy to you: SucceededThe proxy has reached the site
- Both ways: TLS, end to endEncrypted traffic, relayed untouched
# HTTP proxy
curl -x http://proxy.example.com:8080 \
-U "$PROXY_USER:$PROXY_PASS" https://example.com
# SOCKS5, with DNS resolved by the proxy
curl -x socks5h://proxy.example.com:1080 \
-U "$PROXY_USER:$PROXY_PASS" https://example.comOnly the scheme changes. Credentials come from environment variables, so they stay out of your shell history.
- Who resolves DNS
- An HTTP proxy receives the hostname and looks it up itself. A SOCKS5 client chooses: resolve locally, or pass the name on (
socks5h://in cURL). - Signing in
- Both accept a username and password: HTTP in a
Proxy-Authorizationheader, SOCKS5 in its own sign-in step. Many providers also accept an allowlisted source IP. - The hop to the proxy
- Neither protocol encrypts the connection between you and the proxy by itself. HTTPS content stays encrypted inside it.
- Ports are a convention
- Numbers like 8080 or 1080 are habits, not rules. Use the host and port your provider gives you.
Go deeper
- GuideHTTP vs SOCKS5 Proxies: DNS, TLS, UDP & Client TestsCaptured handshakes, DNS location, TLS and UDP limits, with current cURL and Requests syntax.
- GuideProxy Ports Explained: Why the Number Is ConventionWhy 8080, 3128 and 1080 are conventions, and what to check instead.
- On DatabaySOCKS5 proxiesThe same SOCKS5 handshake on every Databay network.
Residential, datacenter and mobile proxies
The type names where the exit IP address comes from. Websites can look up the network behind any address, so the origin shapes how your traffic is treated more than the protocol does.
Every IP address is registered to an organization, and a lookup shows whether it belongs to a home internet provider, a cloud host or a mobile carrier. That is why the same request can be treated differently from a home address than from a server range.
Residential
- Registered to
- Home internet providers (ISPs)
- Looks like
- An ordinary home connection
- Common fit
- Sites that treat server traffic differently; city-level checks
Datacenter
- Registered to
- Hosting and cloud companies
- Looks like
- A server in a data center
- Common fit
- Speed and volume where hosting addresses are accepted
Mobile
- Registered to
- Mobile carriers (4G and 5G)
- Looks like
- A phone on a cell network, often shared by many users
- Common fit
- Mobile-first apps and sites
- Shared or dedicated
- Shared pools hand addresses to many customers in turn; a dedicated address serves one. All Databay networks use shared pools.
Go deeper
- GuideResidential vs Datacenter Proxies: Evidence-Based ComparisonOrigin, detection signals, cost and fit, compared on evidence.
- GuideHow Residential Proxies Work: Architecture and RoutingFrom the gateway to a home exit: how a residential pool routes a request.
- GuideShared vs Dedicated Proxies: Allocation, Control, and CostAllocation, control and cost of shared and dedicated addresses.
- Free toolIP lookupThe network type and ASN behind any address, including a proxy’s exit.
- On DatabayCompare Databay’s four networksOrigin, targeting and the first order for each, side by side.
Rotating, sticky and static IPs
Persistence is how long you keep the same exit IP. A rotating proxy can assign a new exit with each new connection, a sticky session holds one exit for a set time, and a static proxy keeps one fixed address.
Match it to the job. Keep one address while a login, a cart or a multi-page form has to look continuous. Let it rotate when every request stands on its own, like fetching public product pages.
RotatingA new exit can be assigned per connection
Rotating: the eight requests leave from eight different exits, A to H.
StickyOne exit until the session ends
Sticky: the first four requests share exit A; after the session ends, the next four share exit B.
StaticThe same address every time
Static: all eight requests leave from exit A.
- Rotation is not permission
- A new address does not authorize access that a site’s terms forbid, and it does not carry a login over to another exit.
- On Databay
- Every network rotates by default, with sticky sessions of up to 1440 minutes (1440 on Residential Eco). None of them allocates a static or dedicated IP.
Go deeper
- GuideStatic vs. Rotating Proxies: Session Design & Cost LabSession vocabulary, cost and a lab for choosing a rotation interval.
- GuideRotating Proxy Free Trials: Buyer Test ChecklistWhat to test in a rotating proxy trial before you pay.
- On DatabayRotating and sticky sessionsHow Databay assigns exits and holds a session.
Can you trust a proxy you don’t run?
Only as far as you trust whoever runs it. Every proxy sees your IP address and where you connect. HTTPS keeps page content and passwords private from the proxy; plain HTTP does not.
That is why free public proxies are risky for anything personal: the operator, its logging and its intentions are unknown, and it can vanish or tamper with unencrypted pages. If you use one at all, keep it to disposable tests on HTTPS sites.
| Through the proxy | HTTP site | HTTPS site |
|---|---|---|
| Your IP address | Visible | Visible |
| Which site you visit | Visible | Visible |
| Full URL, pages and forms | Visible | Encrypted |
| Passwords you type | Visible | Encrypted |
HTTPS holds only while your device trusts no certificate the proxy controls. Never install a proxy’s root certificate unless you run that proxy.
- Anonymity labels are narrow
- Transparent, anonymous and elite describe the headers one checker saw, such as
X-Forwarded-FororVia. They say nothing about who runs the proxy or what it logs. - A proxy is not permission
- Using one does not change what a site’s terms or the law allow. Collect only what you are entitled to collect.
Go deeper
- GuideAre Free Proxies Safe? A Practical Threat ModelA threat model: operator, transport, logging, uptime and tampering.
- GuideProxy Anonymity Levels: Elite vs Anonymous vs TransparentWhat elite, anonymous and transparent really measure.
- GuideAre Proxies Legal? A Risk-Based Compliance GuideA risk-based guide to lawful use.
- Free toolProxy checkerLiveness, protocol and exit IP for up to 100 proxies at once.
How do you check that a proxy works?
Compare two observations: your IP without the proxy, then through it. A changed exit confirms that one request path, not every app on your device.
Record your direct IP
Open the IP checker in the same browser or client you are about to change, and note the address and IP version.
Open What is my IPDecide what should change
Name the app, the destinations and whether DNS lookups should go through the proxy too.
Revisit proxy vs VPNConfigure one client
Follow a setup guide for your tool and send one request to a site you are allowed to test. Keep credentials out of shell history and screenshots.
Find a setup guideCompare the exit
Repeat the IP check through the proxy. A new address confirms that request path, not the whole device.
Name the failure before retrying
Tell DNS, sign-in (407), tunnel, TLS and site-policy errors apart. Stop when permission or ownership is unclear.
Fix tunnel errors
# Step 1: without the proxy
curl https://databay.com/what-is-my-ip/json
# Step 4: through the proxy
curl -x http://proxy.example.com:8080 \
-U "$PROXY_USER:$PROXY_PASS" \
https://databay.com/what-is-my-ip/jsonEach prints the address the site saw, with its location, as JSON.
Go deeper
- GuideProxy Checker: Test Liveness, Protocol, and Exit IPLiveness, protocol and exit-IP checks, and what each result means.
- GuideERR_TUNNEL_CONNECTION_FAILED: Causes and How to Fix ItThe browser error behind most failed proxy tunnels.
- Guidecurl Error 7 and 56: Exit Codes Explained and FixedcURL exit codes 7 and 56, and how to fix them.
- Free toolProxy config generatorReady-to-run setup code for six popular clients.
Cheat sheet
Six proxy labels and what each one proves
Each label answers a narrower question than it seems to. The middle column is what you can conclude; the right column is what still needs checking.
| Label | It tells you | It does not tell you |
|---|---|---|
| Proxy route | Which configured client connection reaches an intermediary before the destination. | Whether every app, DNS lookup, background service or IP version took the same route. |
| VPN route | Which traffic the operating system or VPN policy placed inside its tunnel. | That every DNS path, IPv6 route, split-tunnel exception or app-specific connection is covered. |
| HTTP proxy | That a client can use HTTP proxy semantics, including forwarding or CONNECT where supported. | That the hop to the proxy is encrypted, that non-HTTP traffic works, or that the operator is trustworthy. |
| SOCKS5 | That client and server can negotiate a general relay; client settings decide where names are resolved. | That UDP, a given sign-in method, remote DNS or every app feature works in a specific setup. |
| Rotating or sticky | How the provider intends to assign or keep an exit address for a request or session. | That rotation grants permission, avoids controls, preserves app state or guarantees a region. |
| Anonymity grade | What one checker observed in relayed address and header signals. | Who runs the proxy, what it logs, whether DNS or browser traffic leaks, or what the next request will reveal. |
Quick answers
Common questions about proxies
Does a proxy hide my IP address?
From the sites you reach through it, yes: they see the proxy’s exit IP. The proxy operator still sees your real address, and apps or DNS lookups that bypass the proxy can still reveal it.
Does a proxy encrypt my traffic?
Not by itself. A plain HTTP or SOCKS5 proxy adds no encryption. HTTPS sites stay encrypted end to end through it, while plain HTTP pages are readable by the proxy.
Is a proxy the same as a VPN?
No. A proxy usually changes the route for the apps you configure, while a VPN usually tunnels all device traffic and encrypts it to the VPN server. Both depend on their settings and on trusting the operator.
What is a residential proxy?
A proxy whose exit IP belongs to a home internet connection registered to an internet service provider. Sites see an ordinary household address rather than a server range.
What is the difference between rotating and sticky proxies?
A rotating proxy can assign a new exit IP with each new connection. A sticky session keeps the same exit for a set time, so multi-step tasks such as a login keep one address.
Is it legal to use a proxy?
In most countries, using a proxy is lawful in itself. What matters is what you do through it: the site’s terms, the data you collect and the permissions you hold. This is general information, not legal advice.
Put it into practice
You know the route.
Now try it on a real connection.
See what sites see
Your public IP, its location and its network. Free, no sign-up.
Set up a client
Step-by-step guides for browsers, code libraries and automation tools.
Try a real proxy
1 GB free for 7 days. Card required. From day 7, automatic top-ups of 25 GB for $13.75 unless you turn them off.
One trial per customer.
Keep reading:Platform workflowsAll proxy guidesDatabay FAQ