Talk video call must have a TURN server installed? Plesk VPS

Support intro

Some useful links to gather information about your Nextcloud Talk installation:
Information about Signaling server: /index.php/index.php/settings/admin/talk#signaling_server
Information about TURN server: /index.php/settings/admin/talk#turn_server
Information about STUN server: /index.php/settings/admin/talk#stun_server

Nextcloud version (eg, 24.0.1): Nextcloud Hub 8 (29.0.7)
Talk Server version (eg, 14.0.2): 19.0.9
Custom Signaling server configured: no
Custom TURN server configured: no
Custom STUN server configured: no

In case the web version of Nextcloud Talk is involved:
Operating system (eg, Windows/Ubuntu/…): Ubuntu
Browser name and version (eg, Chrome v101): Firefox

The issue you are facing:

I’m able to start a video call from my PC connected to the home Wifi to my mobile device connected with the same Wifi network.

If I try to call from my PC Wifi to another device not in my Wi-Fi network the video call has no success and an error to configure the TURN server is showed.

I need to setup this TURN server or there is another solution?
I have no idea of what TURN server is and if I can install on my Plesk server where I run my production websites and all without creating conflict and issues with the control panel Plesk and all websites.

At the page index.php/settings/admin/talk#stun_server I can see STUN is stun.nextcloud.com:443 no TURN server configured.

I can maybe find some free external TURN server service that can be configured in talk?

Yes you need STUN and TURN to make the connection work in different scenarios. STUN and TURN are technologies to connect clients without direct network connection. you have to learn about this technologies if you want to use Talk or any other media application with clients on other networks.

1 Like

Thanks, I see CloudFlare offer the TURN service
https://developers.cloudflare.com/calls/turn/

but maybe is not compatible with Nextcloud
https://community.cloudflare.com/t/calls-service-cloudflare-turn-in-nextcloud/658463

Sorry, it’s currently not: Compatibility with Cloudflare Calls (TURN & STUN servers) · Issue #12394 · nextcloud/spreed · GitHub

1 Like

apt install coturn

does the trick.

1 Like

Thanks, the idea of install and self host on my VPS the coturn is hot, i like it but… every time there is something to install by SSH I’m scared to broken something in Plesk or on my active websites.

After you send the command apt install coturn don’t need to do any configuration? I found this video: https://youtu.be/buuVXt3Hb8Q
It show some configuration needed.

Another question is:
with the apt install command the installation will start. In the case I want revert back and unistall what is the command?

Thank you!

SSH command
turnserver -o
result:

0: : Domain name:
0: : Default realm: domain.ext
0: : WARNING: cannot find certificate file: turn_server_cert.pem (1)
0: : WARNING: cannot start TLS and DTLS listeners because certificate file is not set properly
0: : WARNING: cannot find private key file: turn_server_pkey.pem (1)
0: : WARNING: cannot start TLS and DTLS listeners because private key file is not set properly

How can fix this?

I’m using Plesk so maybe I need customize the cert and the private key patch but i have no idea on how to find them.

Resolved: the issue with turn server was created by the Plesk Firewall active that need custom rules allow ports used by TLS and turn

2 Likes