selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Coturn logo

Self-host Coturn

docker/4.18.0-r0

TURN/STUN relay server for WebRTC and VoIP NAT traversal

ReleaseOpen SourceBSD-3-Clause
docker run -d -p 3478:3478 -p 3478:3478/udp -p 5349:5349 -p 5349:5349/udp -p 49152-65535:49152-65535/udp coturn/coturn
Updated2 months ago
LanguageC
Setup difficultyModerate
Stars
14 548
Ports
3478 (TURN/STUN listener for UDP and TCP), 5349 (TURN listener for TLS and DTLS)
Docker
coturn/coturn

What is Coturn?

Coturn alternatives

Should you self-host Coturn?

Coturn scores 71/100 on selfhost.directory (how scoring works) and ranks #1 of 1 in WebRTC. It has 14 548 GitHub stars, +93 in the last 30 days.

It shipped 16 stable releases in the past year. The latest, docker/4.18.0-r0, came out on 8 September 2026. New versions land roughly every 3 days.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is BSD-3-Clause-licensed and written mostly in C.

Features

  • HTTPS management interfaceRequires the admin_user database table to be populated
  • IPv6 Support
  • Load balancing support
  • Long-term credentials authentication
  • Multi-tenant realms (ORIGIN)
  • Pluggable user databases
  • Prometheus metrics endpointUnavailable in the apt package
  • STUN and TURN server
  • Telnet CLI management interface
  • Third-party oAuth authorizationDescribed as experimental
  • Traffic bandwidth control
  • TURN mobility (MICE)
  • TURN REST API credentials

Coturn README

Docker CI Docker Hub Fuzzing Status Ask DeepWiki

Docker Hub | GitHub Container Registry | Quay.io

Coturn TURN server

coturn is a free open source implementation of TURN and STUN Server. The TURN Server is a VoIP media traffic NAT traversal server and gateway.

Installing / Getting started

Linux distros may have a version of coturn which you can install by

apt install coturn
turnserver --log-file stdout

How to install Coturn

Install Coturn with Docker

Environment variables
DETECT_EXTERNAL_IP, DETECT_RELAY_IP, DETECT_EXTERNAL_IPV6, DETECT_RELAY_IPV6
docker run -d -p 3478:3478 -p 3478:3478/udp -p 5349:5349 -p 5349:5349/udp -p 49152-65535:49152-65535/udp coturn/coturn

Host networking is recommended for the large relay port range; images are published for Debian and Alpine.

Coturn releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in WebRTC

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…