Can someone explain me what "STUN stun.l.google.com:19302" is used for ?

44,209 views
Skip to first unread message

Lionel_RTC

unread,
May 16, 2012, 10:29:54 AM5/16/12
to discuss...@googlegroups.com
Hi everyone !

I'm looking at the webrtc.html and peerconnection_server demo, and it is working fine between two Chrome browsers.
My question is, what exactly is the first param of webkitPeerConnection ?

pc = new webkitPeerConnection("STUN stun.l.google.com:19302", onSignalingMessage);

Is it a third party STUN server given by Google for demo purpose ?
If, in my JavaScript code, I replace "stun.l.google.com:19302" by "toto", I'm still able to make video calls.
But as I'm on the same subnet, this can be explainable...

Any hint would be much appreciated :)
Lionel

Ivan Vučica

unread,
May 16, 2012, 11:06:01 AM5/16/12
to discuss...@googlegroups.com
STUN servers are used by both clients to determine their IP address as visible by the global Internet, or, at least, by the STUN server itself. For more information, look up what STUN and TURN do. You are able to make calls because IP addresses determined by STUN are part of only some ICE candidates when establishing the connection. Other candidates' IP addresses are, I presume, gathered by enumerating your network cards and their IP addresses. These two hosts did not need a STUN server since neither of them was behind a NAT as far as the other one was concerned, and the IP addresses as declared by NICs (presumably your network's addresses from a private range) were sufficient candidates during ICE.

stun.l.google.com is a Google-hosted STUN server which, I presume, is used for Google Talk and other Google-hosted VOIP services.

Lionel_RTC

unread,
May 16, 2012, 11:37:08 AM5/16/12
to discuss...@googlegroups.com
Great, thank you for your clean answer :)
I also found that there are many other Google Stun servers out there. Could be useful for demos !
Regards,
Lionel

ALTANAI BISHT

unread,
Mar 13, 2014, 7:05:36 AM3/13/14
to discuss...@googlegroups.com, liole...@gmail.com
Hello , I just saw your question . If you still are facing problems with webRTC video conf  ( with or without sip ) send me console logs or problem description . I think i can help .

On Friday, April 12, 2013 6:10:54 PM UTC+5:30, Madhuru Vijaya wrote:
Hi everyone !

 im working on video conference project. i got a code from web_RTC. But iam unable to make a video call. when i execute no error but the output is not coming. please help me.
 
Any hint would be much appreciated :)
Vijaya

Awadesh Badaya

unread,
Jul 26, 2014, 12:49:44 PM7/26/14
to discuss...@googlegroups.com, liole...@gmail.com
Hi,

I am trying to implement video conferencing between two peers using WebRTC and found below URL:


Above works fine when button Start Video & Stop Video buttons are clicked & it displays my machines viedo. but when I click on connect button to connect with the some other machine, who is also at the same URL then nothing happens. Do I need to incorporate IP address of my machine or remote machine in the code for connecting through Web.rtc ? Do I need node.js running ? Please help.

Thanks in advance,
Awadesh Badaya

Silvia Pfeiffer

unread,
Jul 28, 2014, 8:58:38 PM7/28/14
to discuss...@googlegroups.com, liole...@gmail.com
See my reply in the other thread that you started.

Regards,
Silvia.
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "discuss-webrtc" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to discuss-webrt...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Mustafa Darwich

unread,
Aug 30, 2017, 2:02:36 AM8/30/17
to discuss-webrtc, liole...@gmail.com
Hi Silvia,

Do you have any idea how can I reach google stun support as we faced some issues by receiving candidates, but we couldn't establish the connection and I'm not sure about the reason.

Respect,
Mustapha
Reply all
Reply to author
Forward
0 new messages