Step 17 of 18

Voice & Video

Voice & Video

Matrix supports voice and video calls, but requires open ports.

Important

Voice/video does NOT work through Cloudflare Tunnel. You must open ports on your VPS.

Required Ports

ufw allow 3478/udp
ufw allow 3478/tcp  
ufw allow 49152:49200/udp
PortProtocolPurpose
3478UDP+TCPSTUN/TURN signaling
49152-49200UDPMedia relay (audio/video data)

How It Works

  1. STUN - Discovers your public IP
  2. TURN - Relays traffic when direct connection fails (NAT traversal)
  3. Media - Actual voice/video data flows over UDP

Verify

After opening ports, test with a Matrix client that supports calls:

  1. Open your server in Element or Nheko
  2. Start a voice call with someone
  3. Check if audio/video connects

Alternative: Third-Party TURN

Don’t want to open ports? Use a hosted TURN service:

Configure in config/continuwuity/continuwuity.toml with your provider’s credentials.


Text chat works fine through Cloudflare Tunnel. Only voice/video needs these ports.