Blog

What is a WebRTC leak?

Published December 5, 2026 · Updated December 5, 2026 · Mirage Browser

A WebRTC leak happens when a page learns your real IP address through WebRTC, the browser technology for calls, although the rest of your traffic goes through a proxy or a VPN. WebRTC asks the network for its own addresses over a separate route. If that route skips the proxy, the page sees two public addresses: the proxy and yours.

Why does WebRTC know my address?

WebRTC connects two browsers directly, for a call or a file transfer. To find a working path, each browser collects candidates: addresses the other side could reach it at. There are three kinds.

Candidate Where it comes from What it reveals
Host The network interfaces of the device Local addresses, or a random .local name in many current browsers
Server reflexive A STUN server tells the browser which address it sees Your public address
Relay A TURN server forwards the traffic The address of the relay

A page can start this collection with a few lines of script and read the result. No call is needed and no permission is asked.

How does the address get past a proxy?

An HTTP proxy carries web requests. The question to a STUN server is a UDP packet, and by default the browser sends it over the normal network route. The answer contains the address of your connection, not of the proxy.

A VPN that takes over the whole route usually covers this packet too. A proxy set only in the browser often does not.

How do I test for a WebRTC leak?

Open a page that lists WebRTC addresses next to your IP address, with the proxy switched on. Our free check at /check/ does this in your browser.

  • The public WebRTC address equals the IP address the page sees: no leak.
  • There is another public address: that one is behind the proxy, and the page can read it.
  • There are no WebRTC addresses at all: WebRTC is off or restricted.

How do I close the leak?

There are three ways, from mild to strict.

  1. Send WebRTC through the proxy. The standard on IP address handling for WebRTC describes this as the strictest mode: only the proxy route is used. It needs a proxy that can carry the traffic.
  2. Limit WebRTC to the default route and hide local addresses. This stops extra addresses, not the one of the default route.
  3. Turn WebRTC off. Calls in the browser stop working, and a browser with no WebRTC at all is slightly unusual.

Which one fits depends on whether you need calls in that browser.

Is a missing WebRTC address a problem?

Sometimes. Most browsers have WebRTC enabled, so a browser where it is absent differs from the crowd. For that reason sending WebRTC through the proxy is usually better than removing it: the page sees one public address, and it matches the IP address.

How does Mirage handle WebRTC?

Each Mirage profile talks to a local relay inside the app, and the relay connects to the proxy of the profile. WebRTC is either sent through the proxy or turned off for the profile. Setting up the proxy is described in How to set up a proxy in a browser profile.

Where do these facts come from?