

Once you’re done, save and exit your file. # that you have listening-ip set to ipv4 addresses only. # If running coturn version older than 4.5.2, uncomment these rules and ensure # Specify the user for the TURN authentification These configuration blocks will result in the following file: # TURN server name and realm Lastly, you can enable authentification for your TURN server using the user and lt-cred-mech keys.

Then you can continue by defining the directory for your logs and enable the verbose logging mode. # Further ports that are open for communication Next you can define the port your server will listen on and the ports for further configuration. # TURN server name and realmĪfter that, add the external-ip key to define your server's IP-Address and the listening-ip key to specify which IP-Addresses the Coturn server should listen to (0.0.0.0 tells the server to listen to all IP-Addresses). Replace the placeholder values according to your needs.

nano /etc/nfĪdd the following content to define your Coturn server realm and server name. Next, we will create an empty file in the same directory that will contain our configuration. This command will rename the original config file from /etc/nf to /etc/. Now that you have Coturn up and running, it is time to make some basic configurations like defining your external IP-Address and adding basic authentification.īefore we start modifying, it is recommended first to make a safety copy of your original configuration so you can always go back if something is not working out. You should now be able to start the coturn service using the following command. Once you’re done, save and exit the file. sudo nano /etc/default/coturnįind the following line and uncomment it to run Coturn as an automatic system service daemon.

If you want Coturn to autostart whenever you turn on your server, you have to modify the /etc/default/coturn file. Then you can continue installing coturn using the following command.
HOW TO SET UP TUKUI CLIENT INSTALL
In this section, you will install Coturn on your machine and enable the process as an automated system daemon.įirst, you will update your OS's repository versions to the latest version by running the apt-get update command. (Optional): Docker installation for a more straightforward creation process of the TURN server without the need to install Coturn on your serverĬoturn is an open-source STUN and TURN implementation that is free, highly configurable and well supported by the community.A Linux server with a public IP-Address.Prerequisitesīefore you begin this guide, you’ll need the following:
HOW TO SET UP TUKUI CLIENT HOW TO
You will also learn how to add a domain to your TURN server and run the server using Docker. In this article, you will set up your own TURN server using Coturn and secure it using a username and password. TURN is also vital for security reasons because you obscure the client's actual address. TURN, which stands for Traversal Using Relays around NAT, is used to relay the traffic between peers even if they cannot connect directly. WebRTC uses peer-to-peer connections to transfer data, but what happens if a direct connection between two PCs isn't possible because they are not on the same network or have problems with a NAT or some kind of a firewall? How to set up and configure your own TURN server using Coturn
