Support & information center

How to determine if TURN is used in a test?

You may want to know in a test result if the media was sent directly or relayed via a TURN server. And if it went through a TURN server, you’d like to know if that was done over UDP, TCP, or TLS.

For that, if you run tests or monitors in testRTC, or if you’re just uploading a webrtc-internals dump file to analyzeRTC directly, you can follow these instructions to find out (video below):

1. Open the Advanced WebRTC Analytics on the results page

When you look at the test results, the probe level graphs have a button that enables you to access the Advanced WebRTC Analytics information:

Click it.

This will get you to the advanced analysis section which shows a lot more data for debugging purposes.

2. Look at the ICE Candidate pairs table

Scroll down the page until you pass the state machine diagrams. That’s where the ICE Candidate pairs table appear.

In that table, look at the green candidate pairs – these are the active ones. Usually, you’ll have just one of these.

Locate in the active candidate pair the type of connection – there’s one for the local candidate and one for the remote candidate. If one of these is marked as relay, then the session was connected over a TURN relay. You will see the type (udp, tcp or tls) next to the word relay.

3. The video version

Here’s a short video to show you how to do it.

Was this article helpful?

Related Articles