* docs: WebRTC behind a proxy, as the engine does it today The guides described a synthetic server-reflexive candidate and an address rewritten after the STUN reply, and said that SOCKS5 carries only TCP. None of that is what the published packages do. What they do, and what the pages now say: before launch the library measures the SOCKS5 UDP relay of the proxy (UDP ASSOCIATE, a STUN Binding through the relay, compared with the TCP exit). When the relay answers from the exit address, WebRTC's UDP goes through it and the srflx is a real one carrying the exit. With any other proxy no datagram leaves at all: host candidates as mDNS names, no srflx, one icecandidateerror 701. Never a direct datagram, no option that forces UDP or declares an address, no IPv6 candidate in any session. SOCKS5 does define UDP (RFC 1928): the pages say so, and say why a stock browser leaks anyway (it never asks the proxy to relay WebRTC's UDP). The examples assert only what is guaranteed in each case, wait for the end of gathering instead of a fixed time, and no longer require a srflx behind a proxy that cannot carry UDP. The project's own history is out of these pages. * docs: the WebRTC examples name a STUN server and wait for the 701, the 701 comes at about eleven seconds, the exit is discovered with an explicit timezone too
8.5 KiB
title, description, parent, has_children, nav_order
| title | description | parent | has_children | nav_order |
|---|---|---|---|---|
| Network, Proxy and WebRTC | Everything that happens outside the JavaScript engine: proxy authentication and DNS, WebRTC candidates, timezone derivation, TLS fingerprinting, and what a container gives away over the network. | Guides | true | 3 |
Network, Proxy and WebRTC
The layer below the page: the IP a site sees, the DNS queries behind it, the candidates WebRTC exposes regardless of what the page's JavaScript does, the timezone that has to agree with the exit node, and the TLS handshake that happens before a single byte of HTML arrives. None of this is fixable from inside the page, which is exactly why it is worth understanding on its own.
Proxies, IP class and reputation
- What is ASN and IP reputation in bot detection? - How ASN and IP reputation score a network before any JavaScript runs.
- Residential vs datacenter vs mobile proxies explained - What each proxy class looks like to a site: ASN owner, reverse DNS, shared exits.
- What does a mobile carrier IP look like to a site? - Operator ASN, carrier-grade NAT sharing and churn, paired with a desktop fingerprint.
- Sticky vs rotating proxy sessions: which to use - How each maps to one launch and one exit, and what neither fixes.
- Does chaining two proxies help avoid detection? - Chaining hides your origin from the first operator, but the target scores only the last exit.
- Playwright proxy per context: what it does not isolate - Rotates the exit IP but not the fingerprint: canvas, GPU, fonts and audio stay identical.
- Web scraping keeps getting blocked with good proxies - A residential proxy fixes the IP, not the machine, when country disagrees with timezone or language.
- Playwright in Docker: it runs, and still gets blocked - The container describes a datacenter machine: no GPU, few fonts, no audio, a default screen.
Proxy protocols, DNS and IP leaks
-
How to check a proxy's status before you rely on it - Liveness, exit location, latency and browser-level behaviour are four different checks; confusing them misattributes both proxy failures and site blocks.
-
SOCKS5 vs HTTP proxy: what each does in the browser - Who authenticates and where: SOCKS auth and DNS in the engine, HTTP auth in the driver.
-
Playwright SOCKS5 proxy with authentication - Why credentials on a socks5:// server fail silently, and the routes that work.
-
Does a proxy leak DNS? DoH and DNS leaks explained - How a SOCKS5 proxy leaks DNS when the host resolves names locally, and how to verify.
-
IPv6 vs IPv4: which does your proxy expose? - On a dual-stack host the browser can reach a site over IPv6 while the proxy carries only IPv4.
-
How to check if a proxy leaks your real IP - Confirm the actual WebRTC, IPv6, DNS and timezone values, not just that a leak is absent.
-
ERR_HTTP2_PROTOCOL_ERROR in Playwright: causes and how to diagnose it - Chromium's catch-all for an HTTP/2 framing violation, often a proxy mangling the tunnel or a TLS/ALPN mismatch.
-
ERR_TUNNEL_CONNECTION_FAILED in Playwright: what it means and how to fix it - The browser failing to open an HTTP CONNECT tunnel through your proxy, and the curl test that isolates why.
-
ERR_SOCKS_CONNECTION_FAILED in Playwright: what it means and how to fix it - The browser's SOCKS5 handshake failing, a different failure mode from an HTTP CONNECT tunnel.
-
net::ERR_CONNECTION_RESET in Playwright - A TCP RST tore the connection down mid-request; proxy-side causes told apart from server-side ones.
-
net::ERR_PROXY_CONNECTION_FAILED in Playwright - The browser could not even open a socket to the proxy, before any CONNECT tunnel was attempted.
-
net::ERR_ABORTED in Playwright - Usually a cancelled navigation, not a failure: a redirect, a download,
route.abort(), or a secondgoto(). -
net::ERR_NAME_NOT_RESOLVED in Playwright - DNS failed before the proxy got a chance, or a SOCKS5 proxy is resolving hostnames on the wrong side.
-
net::ERR_CERT_AUTHORITY_INVALID in Playwright - The certificate chain does not trace to a trusted root, often a proxy intercepting TLS; what
ignoreHTTPSErrorsreally disables. -
net::ERR_EMPTY_RESPONSE in Playwright - The server closed the connection without sending a single byte back, not even a status line.
-
net::ERR_CONNECTION_REFUSED in Playwright - Something actively rejected the connection; the Docker/CI variant where
localhostisn't the host machine. -
net::ERR_INVALID_AUTH_CREDENTIALS in Playwright - An HTTP auth exchange failed to establish credentials, distinct from a 407 or a silently-dropped SOCKS5 credential.
-
JA4H: The HTTP-Header-Order Fingerprint, Explained - Method, header order, header count, cookies and Accept-Language folded into one string, JA4's HTTP-layer sibling.
WebRTC candidates and leaks
- WebRTC leak with a proxy in Playwright and Selenium - A SOCKS5 proxy does not stop a leak, and disabling WebRTC trades it for a detectable signature.
- WebRTC IP that matches the proxy exit, by design - Behind a SOCKS5 proxy whose UDP relay works, the server-reflexive candidate is the proxy exit; behind any other proxy there is none.
- WebRTC IPv6 leak: why a proxy does not stop it - A stock browser sends WebRTC's UDP from the machine's own interface, outside the proxy, so an IPv6 host can still expose its real address; here no IPv6 candidate is produced.
- No public ICE candidate behind a proxy - Most residential exits cannot carry the UDP that STUN needs: without it there is no server-reflexive candidate, only
.localhost candidates and one gathering error. - WebRTC ICE candidate spoofing: the fields that give it away - Priority, foundation and arrival time are all checkable, not just the address.
- about:webrtc: read your real ICE candidates - Tell a real LAN-IP leak from a masked .local host and, behind a UDP-capable SOCKS5 proxy, a proxy-egress srflx line.
TLS and HTTP fingerprint
- JA3 and JA4: why a TLS fingerprint cannot be patched - Set by the TLS library before your code runs, so no stealth plugin can patch them.
- TLS fingerprint vs User-Agent: the contradiction - The handshake is evidence the engine produced; the header is only a claim.
- HTTP/2 fingerprint: the layer above the TLS handshake - The SETTINGS frame, window update and pseudo-header order form a fingerprint unreachable from JavaScript.
- HTTP/3 and QUIC fingerprint: what a site sees - QUIC exposes an ordered set of transport parameters distinct from JA3/JA4 and HTTP/2.
- Why a Python requests scraper is blocked: TLS fingerprint - A requests scraper has its own TLS fingerprint, blocked at the handshake before any header.
Geo and timezone consistency
- Geolocation API vs IP location: keep them consistent - Coordinates, browser timezone and exit IP country are three signals a site cross-checks.
- Playwright timezone does not match the proxy IP - Timezone and locale are several surfaces a detector cross-checks against your exit IP.
- Offline timezone resolution from a proxy exit IP - Resolve the browser timezone offline from a self-updating local database, no per-launch API call.