Skip to Content
Platform.Ontology

WebRTC local IP discovery

Uses a WebRTC peer connection to learn the device's local and public IP addresses.

Gets silentlyNetwork and connectionConnectionWeb browsersWhen the page loadsWhile you use it

In one line

Can try to learn your device's home network address and public address through a call setup

Uses a WebRTC peer connection to learn the device's local and public IP addresses.

Can reveal a real IP behind a VPN and LAN addresses. Browsers now often hide local addresses behind mDNS names. LinkedIn uses stun.l.google.com:19302 and an IP regex.

What it can and can't do

What the user does: Nothing. A page can start a call setup without a pop up

It can

  • Ask an outside server for your public address
  • See a masked .local name for your home network address in most browsers
  • See your real home network address if you allowed camera or microphone
  • Compare addresses to spot a VPN

It cannot

  • See your real home network address by default in modern browsers
  • Beat a VPN that carries call traffic too
  • See other devices on your network from this alone
  • Work without a script running on the page

Browser support

BrowserStatusFirst versionReleasedNote
ChromeSupported562017-01-25Local IPs masked by mDNS since about Chrome 75
EdgeSupported152017-04-05None
FirefoxSupported442016-01-26None
SafariSupported112017-09-19None
Safari on iPhoneSupported112017-09-19None
Chrome on AndroidSupported562017-02-01None
Samsung InternetSupported6.02017-08-23None

How a site asks for it

APInew RTCPeerConnection({iceServers:[{urls:'stun:stun.l.google.com:19302'}]}), onicecandidate
Browser compat keysapi.RTCPeerConnection
How access is grantednone
What the user seesNone (no browser prompt)
Needs a secure context (HTTPS)No
Needs a user gestureNo
How long it lastsNot listed
How to take it backNot listed
Inside an iframeNot listed

Typical flow

  1. Script reads the value
  2. Value joins the fingerprint payload

Data you get

What comes back: WebRTC local IP discovery
Shape: list
How often: read on demand

FieldTypeUnitRangePrecision
iplistNonelocal and public candidatesexact

Technical limits

  • mDNS hides host addresses by default
  • STUN request also leaks the public IP to Google

The story

What it is

A page can use a call feature to learn your device's home network address and public address.

For you

You never see it. A page can quietly start a call setup and read the addresses it finds. Modern browsers hide the home address behind a random name, but the public one may still show.

For makers

Makers need these addresses to connect calls and games directly. Tracking and fraud scripts also read them to see past some VPNs. Privacy settings can block this, but may break calls.

Where you see it

TypeExampleApps
videoBrowser video calls such as Google Meet gather addresses so your computer and the other person's can connect directly.Google Meet
gamesA browser multiplayer game with peer to peer links finds addresses of all players so they can connect without a central relay.None named
videoA cloud gaming page builds a live video path to the game server using the paths found by this feature.GeForce NOW, Xbox Cloud Gaming
securityA fraud tool reads the public address found by the call setup to see if it differs from the page request address, which may show a VPN.None named
adsA tracking script reads the addresses to tell devices apart, a trick browsers now limit.None named
socialA web voice chat joins a room and shares your path with friends so audio stays low delay.Discord
developerA developer uses a leak test page to check what a site can learn through calls.BrowserLeaks

Risks

  • VPN leak
  • Used to unmask visitors

What the platform says

Good uses and abuse

Legitimate uses

  • Peer to peer calls

Known abuse

  • VPN bypass

Scores

ScoreValueMeaning
Sensitivity4 of 5How revealing the data is
Utility3 of 5How useful it is to honest apps
Friction0 of 5How much the user has to do
Fingerprint bits3Rough identifying entropy, when known

A real example: LinkedIn

Collector key(s): webrtc. STUN stun.l.google.com:19302 and IP regex.

Sources

How well checked: Based on official documentation.

On this page