跳至主要内容
AntidetectLab
浏览器与移动端诊断
WebRTC 与 STUN 泄漏测试

WebRTC 与 STUN 泄漏测试

正在检测

对比 HTTP 地址、ICE 候选地址与匹配到的 STUN 结果。观测缺失可能源于网络策略或客户端配置。

查看详细诊断 双浏览器实时对比

任何获得链接的人均可阅读已发布的报告。

正在准备浏览器检测。
0% · 0.00s R 重新扫描
01 链路 JA4 02 芯片 WASM 03 Canvas IDAT 04 五域 CDP 05 STUN 与 ECS 06 综合研判
我的 IP
正在检测…
正在解析出口 IP 地理位置与 PTR 主机名…
导出 ▾
—
设备一致性评分 等待测量数据
运营商 ISP…
DNS 解析…检测 DNS →
主机名 (PTR)…
IP 质量…
WebRTC…
时区…
JA4 / HTTP2…检测 JA4 →
操作系统…
VPN / 分流 TCP…
匿名节点 / 机器人…检测 Bot →
IP 子网段…
数据源的滥用标记…
指纹 ID…
正在等待本次会话的测量结果。
等待测量数据
交互式专项诊断工作台

WebRTC 与 STUN 泄漏测试 — 实时遥测与诊断

正在收集观测数据…
状态正在为 webrtc-leak-test 收集实时遥测…

8 层取证级遥测拆解

在本地实时测量客户端环境、C++ 字节码引擎、芯片限制以及 L4–L7 传输层参数。

正在检测

相关诊断工具

面向精细化 QA 验证的独立协议与浏览器检测模块。

指纹检测 →
技术规范与检测方法

WebRTC ICE Gathering, STUN Binding & mDNS Address Leakage Forensics

深度技术拆解文章正文以英文撰写;文章摘要、实时诊断工具、检测方法论与基准测试页面均支持您所选的界面语言。

How RTCPeerConnection Gathers Host, Server-Reflexive, and Relay Candidates

Interactive Connectivity Establishment (RFC 8445) discovers local interface addresses, NAT-mapped STUN bindings, and TURN relay endpoints asynchronously.

When a web application instantiates RTCPeerConnection with an ICE server list and creates an SDP offer, the browser begins Interactive Connectivity Establishment (RFC 8445). Three distinct candidate classes can appear in onicecandidate events: host candidates bound to local network interfaces, srflx (server-reflexive) candidates returned by a STUN server via RFC 8489 Binding Responses, and relay candidates allocated through a TURN server.

Because STUN operates primarily over connectionless UDP, misconfigured split-tunnel VPNs or HTTP-only browser proxies frequently fail to encapsulate STUN packets. As a result, the srflx candidate returned inside the browser's SDP attribute exposes the underlying residential or mobile carrier IP address while HTTPS requests appear to exit through a proxy server. Even when a browser blocks client-side reading of srflx attributes, the outbound UDP packet still arrives at the STUN responder carrying the true NAT source IP.

Additionally, AntidetectLab creates an ephemeral RTCDataChannel before calling createOffer() so ICE gathering proceeds cleanly even on browsers that omit media transceivers or lack attached audio/video capture devices. Tracking iceGatheringState transitions ensures timed-out or policy-blocked ICE sessions are labeled accurately rather than treated as leak-free.

ICE Candidate Taxonomy, Address Scopes & Privacy Mitigations

Comparing RFC 1918 private ranges, CGNAT blocks, IPv6 ULA prefixes, mDNS UUID masking, and server-side STUN correlation.

AntidetectLab pairs client-side ICE parsing with a first-party UDP STUN responder bound to the active diagnostic session via unique ephemeral credentials. By comparing the HTTP socket IP against both the client-reported srflx candidates and the server-logged STUN source IP, the workbench detects address mismatches, dual-stack IPv6 leaks where IPv4 is proxied but IPv6 bypasses the tunnel, and carrier-grade NAT (RFC 6598 100.64.0.0/10) exposure.

Candidate / FieldRFC / SpecificationTypical Address ScopeDiagnostic Significance
typ host (mDNS)RFC 6762 / WebRTC mDNS<uuid>.localMasks local LAN IP when media permissions are ungranted
typ host (raw IPv4/v6)RFC 1918 / RFC 419310.0.0.0/8, 192.168.0.0/16, fc00::/7Exposes internal NIC layout if mDNS obfuscation is disabled
typ srflxRFC 8489 (STUN)Public IPv4/IPv6 or CGNAT 100.64.0.0/10Reveals true NAT egress IP if UDP bypasses proxy
typ relayRFC 8656 (TURN)Allocated TURN server IPExpected when iceTransportPolicy: "relay" is enforced
SDP origin & m-linesRFC 8866 (SDP)o=mozilla... / codec listDifferentiates Gecko, Blink, and WebKit media stacks

Dual-Stack IPv6 Bypass and Media Permission Side-Effects

Granting camera or microphone permissions changes ICE host exposure and can reveal unproxied IPv6 interfaces.

WebRTC privacy behavior is state-dependent. Under Chromium and Firefox privacy guidelines, granting camera or microphone permissions lifts mDNS masking on subsequent peer connections, allowing raw RFC 1918 or link-local (169.254.0.0/16, fe80::/10) addresses to surface in host candidates. Furthermore, IPv4-only proxy configurations often leave OS-level IPv6 enabled, allowing srflx IPv6 candidates to leak the host's native prefix.

In addition to IP addresses, SDP offer attributes—including DTLS fingerprint algorithms, RTP extension URIs, and origin lines such as o=mozilla—fingerprint the underlying media engine independently of navigator.userAgent. If an SDP capabilities hash resembles Firefox Gecko while the HTTP request claims Chrome Blink, automation or naive header spoofing is immediately visible.

Configuring WebRTC ICE Policies Without Breaking Conferencing APIs

Evaluating Chromium WebRTC IP handling policies and UDP-capable SOCKS5 or VPN routing.

When auditing proxy hygiene, verify that Address comparison with HTTP shows a clean match (or intentional relay/policy suppression). For SOCKS5 tunnels, ensure the client and proxy server both support UDP Associate (RFC 1928) or enforce Chromium's disable_non_proxied_udp policy so WebRTC never falls back to direct local interfaces. Always inspect DNS Leak & EDNS0 alongside Proxy Checker to verify that UDP STUN, recursive DNS, and TCP HTTP egress all terminate on the same network path.

Be cautious with browser extensions that monkey-patch window.RTCPeerConnection in JavaScript while leaving underlying native C++ sockets untouched or breaking RTCDataChannel promises. Native browser IP-handling flags preserve clean WebIDL prototypes while ensuring UDP candidates never bypass your configured tunnel.

相关取证研究文章

深度拆解指纹浏览器内核、ARM64 云手机、JA4 TLS 协议栈与代理网络卫生。

查看全部文章 →

本工具专项技术问答

Why can WebRTC reveal my real ISP IP even when an HTTP proxy is active?

HTTP and SOCKS proxies configured only at the browser HTTP stack do not automatically tunnel UDP datagrams. When RTCPeerConnection sends a STUN Binding Request directly over UDP port 3478, the STUN server observes your unproxied public egress IP in the XOR-MAPPED-ADDRESS attribute.

What does an mDNS .local hostname in a host ICE candidate mean?

Per draft-ietf-rtcweb-mdns-ice-candidates, modern browsers replace raw RFC 1918 LAN IPv4 addresses (such as 192.168.x.x) with ephemeral UUID.local mDNS hostnames unless camera or microphone permissions have already been granted.

Is disabling RTCPeerConnection completely safer than routing it through TURN?

Completely deleting or throwing on RTCPeerConnection breaks legitimate video/voice conferencing apps and creates an unusual API fingerprint. Most privacy policies prefer iceTransportPolicy set to relay or proxy-tunneled UDP over full API removal.

Why does the server-observed STUN address sometimes show unavailable?

Corporate firewalls, strict symmetric NATs, browser WebRTC disable flags, or environments where UDP port 3478/34780 is blocked prevent the STUN Binding Request from reaching the server, leaving only local host candidates or zero candidates.

How does SDP o=mozilla or media-line hashing identify browser engines?

Session Description Protocol (RFC 8866) offers encode codec payload order, RTP header extensions, and origin lines (such as o=mozilla... in Gecko) that differ across Blink, WebKit, and Gecko implementations.