A WebRTC IP leak is when a page's JavaScript learns a browser's real public IP address through WebRTC, even though the browser's normal HTTP traffic goes through a proxy. The site sees the proxy's IP on the request and your real IP in the WebRTC data, and the mismatch gives away the proxy.
WebRTC lets two browsers open a direct connection, and to do that each side has to learn which addresses it can be reached on. The browser's ICE agent gathers "candidates": host candidates (addresses on local network interfaces) and server-reflexive candidates, which MDN describes as generated by a STUN or TURN server that reports the public address it saw the request come from. Any script on the page can create an RTCPeerConnection, point it at a STUN server, and read the candidates back, without a camera, a microphone or a permission prompt.
The leak is a routing problem. A proxy configured for a browser normally carries its TCP page traffic, but the STUN request is UDP, and proxy-vendor write-ups report that HTTP and SOCKS5 proxy setups commonly leave it outside the tunnel. The STUN server then sees the machine's real public IP and hands it to the page. Browsers also hide local-network addresses behind mDNS names by default, so the address that matters is the server-reflexive public one.
Anti-fraud and anti-bot scripts can compare the IP they see on the HTTP request with the one WebRTC reports. A residential proxy in Ohio paired with a WebRTC address from a datacenter in another country is a mismatch no ordinary visitor produces, so it works as a fingerprint signal even when the proxy IP itself has a clean reputation. Practitioners describe it as one more place where an otherwise good proxy setup gets caught.
Chrome's privacy API documents four WebRTC IP handling policies: default, default_public_and_private_interfaces, default_public_interface_only and disable_non_proxied_udp. The last one stops WebRTC from sending UDP outside the proxy. Anti-detect browsers instead expose a setting that disables WebRTC or substitutes the proxy's IP, and the standard advice is to re-run a leak test for every proxy, profile or OS change, because one clean run doesn't cover the next configuration.
from playwright.sync_api import sync_playwright
LEAK_CHECK = """
async () => {
const pc = new RTCPeerConnection({
iceServers: [{ urls: "stun:stun.l.google.com:19302" }],
});
pc.createDataChannel("probe");
const found = [];
pc.onicecandidate = (e) => { if (e.candidate) found.push(e.candidate.candidate); };
await pc.setLocalDescription(await pc.createOffer());
await new Promise((r) => setTimeout(r, 3000));
pc.close();
return found;
}
"""
with sync_playwright() as p:
browser = p.chromium.launch(
proxy={"server": "http://proxy.example.com:8000"},
# Keep WebRTC's UDP inside the proxy instead of going out directly.
args=["--force-webrtc-ip-handling-policy=disable_non_proxied_udp"],
)
page = browser.new_page()
page.goto("https://example.com")
candidates = page.evaluate(LEAK_CHECK)
# Any srflx candidate whose IP is not your proxy's exit IP is a leak.
print(candidates)
browser.close()How Crawlora handles this
With Crawlora you call one API endpoint and the request leaves from a managed proxy exit, so no browser on your own machine is involved and there is no local WebRTC stack that could report your IP.
Glossary
FAQ
Not by itself. A proxy configured in the browser usually covers page traffic over TCP, but the STUN request WebRTC makes is UDP, and write-ups from proxy vendors report that it often goes out directly. You close it with a browser WebRTC policy or by disabling WebRTC, then confirm with a leak test.
Yes. Creating an RTCPeerConnection and reading its ICE candidates needs no camera or microphone permission, which is why a script can collect the address silently.
No. A WebRTC leak is a browser behavior. An HTTP client that never runs JavaScript or opens a peer connection has no WebRTC stack to leak from.
Beyond WebRTC IP Leak, Crawlora's own docs cover the rest of the stack — browse the APIs, test a request in Playground, and move from scraping infrastructure work to production data workflows.