Setup of my own TURN Server

1,083 views
Skip to first unread message

Josef Grunig

unread,
Jan 25, 2013, 11:52:14 AM1/25/13
to discuss...@googlegroups.com
Hi,

I've built under linux the following binaries:
  • peerconnection_client
  • peerconnection_server
  • turnserver

and got the system working through different NATs using an external TURN Service (Numb Server via Viagenia)

Now I would like to setup my own server and put turnserver running on the same machine where peerconnection_server is. Unfortunately I'm quite new to this and don't know exactly what I need to put on the command line. What are Internal Address and External IP?

Connection string "turn:user@serverip:port" and password seems fine (client side) and correclty setup in the auth file (server side)

Thank you in advance,

Josef Grunig

Justin Uberti

unread,
Jan 25, 2013, 6:17:36 PM1/25/13
to discuss-webrtc
A turnserver commandline looks like

turnserver (address for your clients to connect to) (IP for external parties to connect to) (your realm) (your password file)

e.g. for testing, you could do

turnserver 127.0.0.1:3478 127.0.0.1 foo.com /tmp/pass.txt


--
 
 
 

Josef Grunig

unread,
May 17, 2013, 7:21:49 AM5/17/13
to discuss...@googlegroups.com
Hi Justin,

sorry for late reply on this topic.
It turned out that my command line was correct, but the problem was on the firewall blocking some specific ports.
When disabling the firewall completely the TURN goes correctly throught the NAT.

Now I would like to enable only the outbound ports effectively used by the clients. I added 3478/UDP but seems not enought probably because the relayed port is different.
Is it possible to know the pool of port the turnserver implementation will be using for relaying? I looked at the code without success.

Thank you for your help,

Josef

Oleg Moskalenko

unread,
May 17, 2013, 11:21:03 AM5/17/13
to discuss...@googlegroups.com
Josef, I cannot tell you how to setup the TURN Server that you are using, but here is an article how to put a simple WebRTC setup with a different TURN Server that allows setting the relay ports range:

http://www.dialogic.com/den/forums/t/10238.aspx

That TURN server you can download here:

https://code.google.com/p/rfc5766-turn-server/

It has parameters --min-port and --max-port where you can set the relay ports range.

Regards,
Oleg
Reply all
Reply to author
Forward
0 new messages