Book Image

WebRTC Cookbook

By : Andrii Sergiienko
Book Image

WebRTC Cookbook

By: Andrii Sergiienko

Overview of this book

Table of Contents (15 chapters)
WebRTC Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Configuring a TURN server with authentication


STUN servers don't support authentication, but on the other hand, TURN servers do. Moreover, if you maintain a TURN server, it has to support authentication and prohibit anonymous access. When using a TURN service, all the traffic from one peer to another goes through the TURN server. If anyone had anonymous access to such a server, they could very quickly utilize the server's resources and traffic limits.

In this recipe, we are going to go through a TURN authentication task.

Getting ready

First of all, we need to download and install a TURN server. There are several implementations, and in this recipe, we will consider using rfc5766-turn-server.

This software is multiplatform and can be used on Unix-like systems and on Windows systems as well. Nevertheless, to keep it simple, in this recipe, we will cover a Linux-based case only.

Download the source code from the TURN server home page at https://code.google.com/p/rfc5766-turn-server/.

To install...