This project expects coturn to run as a separate process. Use the sample config in turnserver.conf.example and keep credentials in sync with backend env vars.
cd coturn
cp turnserver.conf.example turnserver.conf
# Edit turnserver.conf to set realm, external-ip, and user credentials
turnserver -c turnserver.confStop with pkill turnserver or your service manager.
cd coturn
cp turnserver.conf.example turnserver.conf
./run-docker.sh # uses instrumentisto/coturn by defaultStop with ./stop-docker.sh (defaults to container name webrtc-coturn).
- Default listening port: 3478 (UDP/TCP). Enable 5349 for TURN over TLS if needed.
- Set
external-iptoPUBLIC_IP/LOCAL_IPwhen behind NAT or using multiple interfaces.
- Static creds from
turnserver.conf(user=...) must match backend envsTURN_USERNAME/TURN_PASSWORD. - For production, prefer long-term creds or REST-style time-limited creds issued by the backend.