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
Asked
Active
Viewed 462 times
-2
-
Any fast help will be really helpful for me. – Arpan Nag Apr 19 '16 at 12:56
-
take a look at this [answer](http://stackoverflow.com/a/32113146/3074768) – mido Apr 19 '16 at 16:22
-
I tried. And having errors. – Arpan Nag May 02 '16 at 11:58
-
what are the errors? – mido May 02 '16 at 12:46
-
The installation is done, but when I am trying to get the TURN URL, I am unable to understand what should I put. Any suggestion ? – Arpan Nag May 05 '16 at 12:53
-
you are unsure of how to run the TURN server, or how to use the TURN url in your application? – mido May 06 '16 at 06:44
-
How to use to use the turn URL. and where from I can get that TURN URL ? – Arpan Nag May 11 '16 at 13:47
-
check this out ... http://stackoverflow.com/questions/34982250/how-to-establish-peer-connection-in-web-app-using-coturn-stun-turn-server/34983853#34983853 – mido May 18 '16 at 00:55
1 Answers
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