Vyral Docs
Advanced Setup

CoTURN Server Installation

Set up STUN/TURN server for reliable WebRTC video and voice calls

CoTURN Server Installation

Set up a CoTURN server to enable reliable WebRTC video and voice calls across different network configurations.

Quick Installation

Simply upload and run the automated installer script:

Upload Script

Upload the install-coturn.sh script to your new server

Run Installer

# Make installer executable
chmod +x install-coturn.sh

# Run the automated installer
sudo ./install-coturn.sh

Done!

The installer automatically configures everything and provides your connection details.

What the Installer Does

The automated installer handles everything:

  • Detects your operating system
  • Installs CoTURN server
  • Configures firewall rules
  • Generates secure credentials
  • Tests the installation
  • Provides integration details for Vyral

Integration with Vyral

After installation, add these to your backend .env file:

# CoTURN Server Configuration
TURN_SERVER_URL=turn:YOUR_SERVER_IP:3478
TURN_USERNAME=vyraluser
TURN_PASSWORD=VyralPass2024!
STUN_SERVER_URL=stun:YOUR_SERVER_IP:3478

The installer will provide these exact values after completion.

Next Steps

CoTURN Installation Complete

Your CoTURN server is now running! Video and voice calls will work reliably across all networks.

Continue with other configurations: