There are many new advanced TURN specs which are going far beyond the original RFC 5766 document. ![]() This project evolved from rfc5766-turn-server project ( ). Coturn is a free and open-source implementation of a TURN and STUN server for VoIP and WebRTC. To implement your own STUN/TURN server, we will rely on the Coturn project. Having said that, let's get started with the tutorial! 1. Without the secure protocol, your server implementation won't be completed and after using it on your WebRTC projects with HTTPS it won't work, so be smart and avoid headaches, buy a SSL certificate or get a free one with LetsEncrypt. SSL Certificates for the subdomains (preferably a certificate with wildcard e.g *.).Own a domain and have access to the DNS manager as you will need to create 2 subdomains (the domain will be in our case and we have it hosted on goDaddy).Know the public IP of your server, in our case we will use our server public IP 209.126.124.122.In order to succeed with the implementation of this tutorial, you will need obligatorily the following things: In this tutorial, we'll explain you how to install and configure coturn from scratch to create your own STUN/TURN server in Ubuntu 18.04. ![]() This is known as a TURN server, that stands for Traversal Using Relay NAT and is a protocol for relaying network traffic.Īs it's quite difficult to find a free TURN server, because there isn't any, we ended up implementing our own STUN/TURN server and we want to share with you how we implemented it. As mentioned on the official notes of getting started with this technology, most of the times to make applications like this work, you will need a special kind of server that is on charge of relaying the traffic between peers, because sometimes a direct socket is often not possible between the clients (unless they reside on the same local network). On the last days, we needed to implement a WebRTC based videoconference application using PeerJS with Node.js.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |