Is it only TURN server?

88 views
Skip to first unread message

Sojharo Mangi

unread,
Mar 6, 2014, 1:19:20 PM3/6/14
to turn-server-project...@googlegroups.com

Hello,

First of all, sorry for such basic question. I am little confused. Is it only TURN server? and not STUN server? Can't we implement our own STUN server rather using one provided by Google?

Oleg Moskalenko

unread,
Mar 6, 2014, 1:58:52 PM3/6/14
to Sojharo Mangi, turn-server-project...@googlegroups.com
This is both a STUN and a TURN server.

Sent from my iPhone

On Mar 6, 2014, at 10:19 AM, Sojharo Mangi <soj...@gmail.com> wrote:


Hello,

First of all, sorry for such basic question. I am little confused. Is it only TURN server? and not STUN server? Can't we implement our own STUN server rather using one provided by Google?

--
You received this message because you are subscribed to the Google Groups "TURN Server (Open-Source project)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turn-server-project-rfc57...@googlegroups.com.
To post to this group, send email to turn-server-project...@googlegroups.com.
Visit this group at http://groups.google.com/group/turn-server-project-rfc5766-turn-server.
For more options, visit https://groups.google.com/groups/opt_out.

Sojharo Mangi

unread,
Mar 6, 2014, 2:00:21 PM3/6/14
to Oleg Moskalenko, turn-server-project...@googlegroups.com
Hello Oleg,

Thanks for your kind reply. I have one more question.

I am working on a webrtc application and have to implement following TURN server.

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

I am following this tutorial.

http://www.dialogic.com/den/developer_forums/f/71/t/10238.aspx

and it says to reference the TURN server as follows, in javascript code where RTCPeerConnection is created.

var pc_config = {"iceServers": [{"url": "stun:stun.l.google.com:19302"},            {"url":"turn:my_username@<turn_server_ip_address>", "credential":"my_password"}]};
        pc_new
= new webkitRTCPeerConnection(pc_config);

I am little confused, why are we referencing to Google's public STUN server. I thought RFC5766 TURN server has STUN inside it.

Sorry for such naive question. I am new to WebRTC.

Thanks.
--
Regards,
 
Sojharo


Oleg Moskalenko

unread,
Mar 6, 2014, 2:08:59 PM3/6/14
to Sojharo Mangi, turn-server-project...@googlegroups.com
That was a turn only example. You can use this server as a stun server.

Sent from my iPhone

Sojharo Mangi

unread,
Mar 6, 2014, 2:32:29 PM3/6/14
to Oleg Moskalenko, turn-server-project...@googlegroups.com
Will this RFC5766 server also function as STUN server when TURN is not needed and only STUN is needed? Or we need to do some modification with this?

Oleg Moskalenko

unread,
Mar 6, 2014, 3:06:11 PM3/6/14
to Sojharo Mangi, turn-server-project...@googlegroups.com
Yes, see the stun-only option

Sent from my iPhone
Reply all
Reply to author
Forward
0 new messages