# 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.

- URL: https://tools.itlibra.com/en/webrtc-diagnostics
- On-device・Network lookup
- Last updated: 2026-11-23

## 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.

## 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

## 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.


## Capability matrix

| Feature | Support | Notes |
| --- | --- | --- |
| Collecting ICE candidates (host, srflx, relay) and the time it takes | Supported | — |
| NAT estimate | Partial | An estimate only; it does not determine the NAT type |
| TURN relay test (UDP, TCP, TLS) | Supported | You enter the URL and credentials |
| Data-channel round trip, transfer and getStats between two in-page connections | Supported | — |
| Supported codec list | Supported | — |
| Sending camera and microphone media (inside the page) | Partial | Optional; permission is asked only when you press the button |
| Connecting to another device or measuring real call quality | Not supported | Only 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.
