WebRTC Diagnostics

Collect ICE candidates (host, srflx, relay), test a TURN server, connect two peer connections inside the page and list supported codecs, all on one page. STUN and TURN are asked directly from your browser; LIBRA Works servers do not relay anything.

On-deviceNetwork lookupMobile friendly

Collecting ICE candidates (STUN)

Collects the connection candidates (host = this device’s addresses, srflx = the address seen from outside) and shows whether anything is blocking them.

Sends to: the STUN server below (Google’s public STUN by default), directly from your browser over UDP. That server sees your IP address. LIBRA Works servers are not used.

Default: stun:stun.l.google.com:19302

If set, the addresses seen by the two servers are compared to estimate how the NAT behaves. Leave empty to use one server.

TURN test

Tries to authenticate to a TURN server and get a relay address. If a relay candidate is obtained, a call has a chance of connecting through the relay when a direct path is not possible.

Sends to: only the TURN server you enter here. The user name and password are sent to that server for authentication. They are not sent to LIBRA Works or stored (hidden by default; gone when you leave the page).

e.g. turn:turn.example.com:3478?transport=udp, turn:turn.example.com:3478?transport=tcp, turns:turn.example.com:5349 (TLS)

In-page connection (data channel and media)

Creates two connections (RTCPeerConnection) inside this page, connects them and shows the data-channel round-trip time, how much could be sent, and the key getStats values. No outside network, STUN or TURN is used.

Sends to: nothing outside. Even with camera or microphone, the video and audio only pass between the two connections inside this page.

The browser asks for permission only when you tick a box and press “Test connection”. It stops right after the test.

Supported codecs (RTCRtpSender.getCapabilities)

The codecs this browser can send with. Which one is actually used is negotiated with the other side.

Report (to send to support)

By default IP addresses (IPv4, IPv6, mDNS names) and the TURN server name are replaced with placeholders. Including them makes your line and device easier to identify.

Run any test and its text appears here.

How to use

  1. In “Collecting ICE candidates”, check the STUN server (Google’s public STUN by default) and press “Collect candidates” (or Ctrl / ⌘ + Enter). Nothing is sent until you press it.

  2. See the host, srflx and relay counts, the time it took and the NAT estimate (an estimate). If no srflx is obtained, suspect blocked UDP or a firewall.

  3. If you have your own TURN server, enter its URL, user name and password and press “Test TURN” to see whether a relay candidate is obtained.

  4. In “In-page connection” see the data-channel round trip and how much could be sent. Camera or microphone are added only if you tick a box and run the test; that is when permission is asked.

  5. Use “Copy report” to keep the results as text. IP addresses are hidden by default.

What it does

host, srflx and relay by type

Collected ICE candidates are counted by type, and the tool shows whether host addresses are hidden behind mDNS names (xxxx.local), the time to the first candidate and the total time.

A NAT estimate within what can be known

The address seen from outside is compared with the device’s address to estimate whether a NAT is in between. A second STUN server lets it also compare whether the mapping changes with the destination. Both are estimates, not certainties.

A real TURN relay request

Authenticates to the TURN server you enter and checks whether a relay candidate is obtained, shows UDP, TCP or TLS, and explains the errors the browser reports (such as 401 and 701). The password is never stored and is hidden by default.

Two connections inside the page

Without using the outside network, see the data-channel round trip (10 pings), a 1 MiB transfer and the key getStats values. Camera and microphone are optional.

A report with addresses hidden

Copy the results as text. IP addresses and the TURN server name are hidden by default, and you choose whether to include them.

Use cases

  • Tell whether a “video call will not connect” problem lies on your network side
  • Check that STUN requests get through a company network and that UDP is not blocked
  • Try whether a TURN server you set up accepts credentials and hands out a relay
  • See the codecs and connection statistics your browser offers while developing with WebRTC
  • Make a report with IP addresses hidden to send to support

Capability matrix

FeatureSupportNotes
Collecting ICE candidates (host, srflx, relay) and the time it takesSupported—
NAT estimatePartialAn estimate only; it does not determine the NAT type
TURN relay test (UDP, TCP, TLS)SupportedYou enter the URL and credentials
Data-channel round trip, transfer and getStats between two in-page connectionsSupported—
Supported codec listSupported—
Sending camera and microphone media (inside the page)PartialOptional; permission is asked only when you press the button
Connecting to another device or measuring real call qualityNot supportedOnly two connections inside the page

Limits & notes

  • STUN collection stops after 8 seconds, the TURN test after 10 and the in-page connection after 15. About 3 seconds must pass before the next run.
  • The in-page connection uses two connections in the same browser: 10 data-channel round trips and a 1 MiB transfer. The values are for reference, not your real network speed or call quality.
  • The NAT estimate compares the address seen from outside with the device’s address. If the device address is hidden behind an mDNS name, or only one STUN server is used, it may not be possible to tell.
  • TURN user names and passwords are limited to 256 characters and are sent only to the TURN server you enter.
  • Browsers differ in the APIs they offer. Some cannot report the relay transport (UDP, TCP, TLS) or error codes.
  • An extension or a company policy that restricts WebRTC can make the results differ from your real environment.

Privacy & safety

STUN requests go from your browser straight to the STUN server you enter (stun.l.google.com:19302 by default) over UDP, and that server sees your IP address. TURN receives the user name and password, for authentication only, at the server you enter (they are not stored). The in-page connection and any camera or microphone media never leave the page. Nothing is sent to LIBRA Works servers.

FAQ

What should I check when a video call will not connect?
First see whether “Collecting ICE candidates” obtains a srflx candidate (your address as seen from outside). If not, UDP or traffic to STUN may be blocked. If you can set up TURN, test whether it hands out a relay.
What is the difference between STUN and TURN?
STUN only tells you the address you appear to have from outside. TURN relays the traffic itself when a direct path is not possible, and needs authentication.
Why do host candidates look like xxxx.local?
Many browsers replace the device’s local IP address with a random name (an mDNS name) so web pages cannot read it. That is normal.
Can it tell my NAT type (full cone, symmetric and so on)?
Not for certain. One STUN server only shows the address seen from outside, so with two servers it compares whether one local socket appears on the same port, to estimate symmetric-like behaviour.
What is sent to Google’s STUN server?
Only when you press “Collect candidates”, a STUN request is sent (the server sees your IP address). You can change the URL to your own STUN server.
Are camera or microphone media sent anywhere?
No. They pass only between the two connections inside the page, are not sent out or stored, and permission is asked only when you tick a box and run the test. The devices stop right after.

Last updated: