Skip to content
1 GB of residential proxies, free. $0 today, card required.

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.

Start readingSkip to the cheat sheet

What a website sees

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.

Who the proxy works for

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.

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.

Which traffic changes route

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.

Proxy and VPN compared
AspectProxyVPN
What changes routeThe apps or requests you configureAll device traffic, minus split-tunnel exceptions
EncryptionNone added by a plain HTTP or SOCKS5 proxy; HTTPS stays encrypted end to endThe tunnel to the VPN server is encrypted
DNS lookupsHTTP proxies resolve names themselves; SOCKS5 clients choose local or remoteUsually the VPN’s resolver, unless a lookup leaks around it
Typical useWeb data collection, geo testing, per-app routingProtecting 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.

Two ways to open the same HTTPS connection

HTTP proxy3 messages

  1. You to the proxy: CONNECT example.com:443Names the site and port, with credentials in Proxy-Authorization
  2. The proxy to you: 200 Connection establishedThe proxy has reached the site
  3. Both ways: TLS, end to endEncrypted traffic, relayed untouched

SOCKS56 messages

  1. You to the proxy: GreetingVersion 5 and the sign-in methods it supports
  2. The proxy to you: MethodThe proxy picks username and password
  3. You to the proxy: CredentialsChecked before any request is accepted
  4. You to the proxy: CONNECT example.com:443The site as a hostname or an IP address
  5. The proxy to you: SucceededThe proxy has reached the site
  6. Both ways: TLS, end to endEncrypted traffic, relayed untouched
terminalThe same request in cURL
# 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.com

Only 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-Authorization header, 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.

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.

Where the exit address is registered
  • Residential

    Registered to
    Home internet providers (ISPs)
    Looks like
    An ordinary home connection
    Common fit
    Sites that treat server traffic differently; city-level checks
    Residential proxies
  • 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
    Datacenter proxies
  • 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
    Mobile proxies
Shared or dedicated
Shared pools hand addresses to many customers in turn; a dedicated address serves one. All Databay networks use shared pools.

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.

Eight requests, three session styles

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.

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.

What the proxy operator can see
What the proxy operator can see
Through the proxyHTTP siteHTTPS site
Your IP addressVisibleVisible
Which site you visitVisibleVisible
Full URL, pages and formsVisibleEncrypted
Passwords you typeVisibleEncrypted

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-For or Via. 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.

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.

  1. 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 IP
  2. Decide what should change

    Name the app, the destinations and whether DNS lookups should go through the proxy too.

    Revisit proxy vs VPN
  3. Configure 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 guide
  4. Compare the exit

    Repeat the IP check through the proxy. A new address confirms that request path, not the whole device.

  5. 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
terminalSteps 1 and 4 in cURL
# 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/json

Each prints the address the site saw, with its location, as JSON.

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.

Proxy terms, supported inferences and important limitations
LabelIt tells youIt does not tell you
Proxy routeWhich configured client connection reaches an intermediary before the destination.Whether every app, DNS lookup, background service or IP version took the same route.
VPN routeWhich 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 proxyThat 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.
SOCKS5That 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 stickyHow 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 gradeWhat 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.

    Check my IP

  • Set up a client

    Step-by-step guides for browsers, code libraries and automation tools.

    Browse setup guidesGenerate a config

  • 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.

    Try 1 GB free

    One trial per customer.

Keep reading:Platform workflowsAll proxy guidesDatabay FAQ