-2

I have tried to install and set up rfc5766-turn-server in AWS EC2 but unable to do it as I do not see a proper flow of work or command line for that, can someone help me about this ? I need to set it up in Ubuntu 14.04

1 Answers1

1

do an ssh login to your ec2 instance, then run the below commands for installing and starting the turn server.

commands for installing turnserver:

sudo apt-get update
sudo apt-get install make gcc libssl-dev libevent-dev wget -y                   # for installing modules required by turn server
mkdir ~/turn && cd ~/turn                                                     # creating temp directory
wget turnserver.open-sys.org/downloads/v3.2.5.9/turnserver-3.2.5.9.tar.gz       # downloading the TURN source code
tar -zxvf *.gz                                                                  # extract
cd turn* 
make 
sudo make install                                                               # installing the rfc5766
cd ../.. && rm -rf turn                                                         # cleaning up

command for starting the TURN server:

turnserver -a -o -v -n -u user:root -p 3478 -L INT_IP -r someRealm -X EXT_IP/INT_IP 

assumptions:
your ip, internal ip = EXT_IP, INT_IP
desired port for listening: 3478
single credential username:password = user:root
realm: someRealm

in your WebRTC app, you can use trun server like:

{
    url: 'turn:user@EXT_IP:3478',
    credential: 'root'
}
mido
  • 24,198
  • 15
  • 92
  • 117