Question about Turn server

Hello,

I installed a coturn server following these instructions: https://nextcloud-talk.readthedocs.io/en/latest/TURN/

I performed test with : https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/

When I select IceTransports value: “All” , I have the following feedback

Time Component Type Foundation Protocol Address Port Priority
0.006 1 host 0 udp 0d726b26-ef12-4fdd-a18e-0faca4ff67f4.local 58803 126
0.008 1 host 4 tcp 0d726b26-ef12-4fdd-a18e-0faca4ff67f4.local 9 125
0.009 2 host 0 udp 0d726b26-ef12-4fdd-a18e-0faca4ff67f4.local 58804 126
0.009 2 host 4 tcp 0d726b26-ef12-4fdd-a18e-0faca4ff67f4.local 9 125
0.020 1 srflx 1 udp my.public.ip.address 58803 100
0.055 2 srflx 1 udp my.public.ip.address 58804 100
0.088 Done

But when I select IceTransports value: “relay” I only get that feedback:

Time Component Type Foundation Protocol Address Port Priority
0.042 Done

Is my Turn server working properly ?

According information available on the test web page I’am supposed to have a candidate with type “relay”.

If there is something wrong, do you have any idea of the root cause ?

Thanks a lot for your support.

I don’t believe you can test the TURN protocol with Trickle-Ice, only the STUN protocol, because the Nextcloud guide uses a secure key and not a user/password.

If you want to test TURN, I would suggest a combination of nmap and looking in logs.

Ex. from a computer on a different network, run nmap -p 3478 your.turn.server.com and wait for it to finish

Look at the turn log files created in /var/logs/ and see if you see the incoming connections and coTurn processing the results.