Matrix coturn issues
Matrix coturn issues
I am trying to get coturn working on my vps provider (I am using digital ocean) for matrix rtc.
I cannot seem to get matrix dendrite to connect to it. I think I have landed on the issue being dns records in cloudflare but I am unsure. Recently I switched to cloudflare and have been using tunnels (which I use for matrix)
Matrix dendrite works fine besides rtc when I uncomment the lines for the turn server but then doesn't function at all when they are there.
I am using ubuntu with docker for matrix dendrite and I am using a debian vps with digital ocean for the coturn server.
Any help is appreciated!
EDIT: Lemmy you beautiful community you!!! Solved yet another issue of mine!
Have you checked your coturn server works correctly? And answers requests in the first place?
See if you get some lines with type "srflx" or "relay".
(And I believe coturn needs to bypass cloudflare. Unless you have an enterprise subscription, it doesn't do raw TCP/UDP connections. So TURN can't work through a free cloudflare tunnel. You need ports 3478, ... and port-min to port-max open on your VPS. And DNS (at least for coturn's subdomain) point to the correct IP of your VPS.)
So I checked and I do not think it can connect.
I have a cloudflare domain I am using and I am only using cloudflare tunnels for the matrix dendrite server not the coturn vps server. I am using cloudflare to setup dns record for coturn on my purchased domain. Is that still an issue?
EDIT:
so i just tried it with the regular vps ip address instead of the domain I set in the dns records and the test tools you linked say it is working that way.
It does connect if you get a line with "srflx" or "relay". Otherwise it does not connect. And your whole coturn server might not be reachable at all.
Well, that depends on how you set it up. What domain name are you using for coturn? (The one you put in the tester.) Where does it point to? To your cloudflare tunnel? To your real IP? And if it's pointing at cloudflare's endpoint: Do you have a paid subscription and set up Spectrum to forward the packets?
Concerning your Edit:
You might now want to try putting in the correct address into
config/dendrite.yaml
. That has a "turn" section. You could try and add an URL with the IP address (instead of a domain name) in "turn_uris".I mean I'm probably the wrong person to ask. I don't use Cloudflare. And I also skipped Dendrite and went for the Conduit server... What's your reasoning to use Cloudflare in the first place? Maybe you want to get rid of it? Or add another supdomain to your DNS that directly points at your server, and have the turn_uri be that, so you don't have to put IP numbers into that section...
Make sure cloudflare proxy is disabled on that DNS record.