TURN server connection fails while trying to connect via SimpleWebRTC

681 views Asked by At

I'm trying to make videochat app using SimpleWebRTC, Signalmaster and Coturn.

On the webpage everything works fine when I try to connect from one tab to another in same browser or over LAN. I'm encountering problems while connecting between computers in different networks (wired broadband and 3G in my case).

I did set up signaling server (Signalmaster) with following config for STUN/TURN part:

"stunservers": [
    {
      "urls": "stun:mydomain.com:3478"
    }
  ],
  "turnservers": [
    {
      "urls": ["turn:mydomain.com:3478"],
      "secret": "secretword",
      "expiry": 3600
    }
  ]

It works since browsers connect to STUN server and exchange signaling data. But when it comes to TURN functionality, Chrome silently fails and Firefox says that my TURN server is likely broken. My Coturn config (let's assume server ip is 1.2.3.4 and domain is mydomain.com):

listening-ip=1.2.3.4
use-auth-secret
static-auth-secret=secretword
realm=mydomain.com

Thanks in advance.

1

There are 1 answers

3
CpnCrunch On

Make sure you follow the "WEBRTC USAGE" instructions in README.turnserver, otherwise it won't work.