O'Reilly logo

WebRTC Blueprints by Andrii Sergiienko

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Deploying the TURN server

In Chapter 1, Developing a WebRTC Application, we discussed how to install, configure, and deploy a simple STUN server for our needs. Here, we will deal with the TURN server, which can also act as a STUN server. So, you don't need to have both the servers (but you can); you can configure just one and it will work either as a STUN or TURN server.

There are several TURN server implementations on the Internet, and you can take what you like the most, but I'd recommend that you consider the rfc5766-turn-server project for use in production systems.

You can download the source codes from https://code.google.com/p/rfc5766-turn-server/.

You need to install additional packages before compiling the server, in particular, mysqlclient-dev ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required