WebRTC IP exposure: what addresses a browser can reveal
You connect to a VPN, and a test page still shows an address the VPN was supposed to hide. A common source is WebRTC, the browser technology behind video calls, which uses a mechanism called ICE to find a path between two peers. Modern browsers apply privacy controls to local addresses, but what a page can observe still depends on the browser, the VPN and the configuration.
Which IP addresses WebRTC can expose
To connect two peers directly, ICE collects candidates, which are addresses where the browser might be reachable. There are three main kinds. A host candidate is an address of a local network interface. A server-reflexive candidate is your public address as an outside STUN server sees it. A relay candidate is the address of a TURN server that forwards the traffic for you.
How to test WebRTC with and without a VPN
Run the test without the VPN and note the candidates, then connect the VPN and run it again. Compare the public addresses and the candidate types. Open the 2ip privacy check before and after as well, to see which IP data is visible to a site in each state.
How to read the candidates you see
If a server-reflexive candidate still shows your provider’s public address while the VPN is on, WebRTC traffic is able to bypass the tunnel. If you see only the VPN’s address or a relay, the real public address is not exposed this way. Modern browsers often replace local addresses with a random name ending in .local, so an absent local address is normal. ICE is specified in RFC 8445.