Intranet WebRTC

831 views
Skip to first unread message

Don Park

unread,
Mar 19, 2012, 5:14:37 PM3/19/12
to discuss-webrtc
Looking at WebRTC source code, I don't see PeerConnection
configuration for direct connection which would be the case when all
clients are in the same Intranet.

Are we required to use a STUN server even when there isn't a firewall
to punch-through?

BTW, could someone confirm definitely that Chrome Canary
implementation of WebRTC as it stands currently *cannot* create
PeerConnections between two clients with same external IP address? If
so, whether this will be remedied eventually or not?

Best,

Don Park

Justin Uberti

unread,
Mar 20, 2012, 1:06:19 PM3/20/12
to discuss...@googlegroups.com
On Mon, Mar 19, 2012 at 5:14 PM, Don Park <supe...@gmail.com> wrote:
Looking at WebRTC source code, I don't see PeerConnection
configuration for direct connection which would be the case when all
clients are in the same Intranet.

Are we required to use a STUN server even when there isn't a firewall
to punch-through?

No, a STUN server is not required when there is no NAT.

 

BTW, could someone confirm definitely that Chrome Canary
implementation of WebRTC as it stands currently *cannot* create
PeerConnections between two clients with same external IP address? If
so, whether this will be remedied eventually or not?

No, this should work, I don't know why this would be a problem. 

Best,

Don Park

Don Park

unread,
Mar 20, 2012, 1:46:10 PM3/20/12
to discuss-webrtc
> No, a STUN server is not required when there is no NAT.

Great. What should be passed as configuration? NULL or empty string?

> > BTW, could someone confirm definitely that Chrome Canary
> > implementation of WebRTC as it stands currently *cannot* create
> > PeerConnections between two clients with same external IP address? If
> > so, whether this will be remedied eventually or not?
>
> No, this should work, I don't know why this would be a problem.

Just realized one of the Macs I was testing with had firewall on.

Allowing incoming connection to Chrome Canary made the demos work.

Awesome! Thanks.

Don

Justin Uberti

unread,
Mar 20, 2012, 4:24:11 PM3/20/12
to discuss...@googlegroups.com
On Tue, Mar 20, 2012 at 1:46 PM, Don Park <supe...@gmail.com> wrote:
> No, a STUN server is not required when there is no NAT.

Great. What should be passed as configuration? NULL or empty string?

For now, empty string should suffice. However, this stuff is all getting reworked to handle things like different STUN/TURN servers, credentials, etc, so you'll want to keep an eye on this as it develops. 

Justin Uberti

unread,
Mar 3, 2013, 7:17:49 PM3/3/13
to discuss-webrtc
STUN/TURN is not required for vanilla networking cases.


On Thu, Feb 28, 2013 at 9:02 AM, Robert Anthony <r.an...@gmail.com> wrote:
Is a STUN/TURN server now required given that the API has changed since last March? I can't seem to find a conclusive answer on the Internet.

I want to set this up in an Intranet scenario for demonstration purposes and I'm not sure if I need to rely on an internal STUN server or not (our lab will be segmented from the Internet).

Host machines will be on the same subnet on the network, so there isn't going to be any NAT involved.

-Robert

--
 
---
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/groups/opt_out.
 
 

Adam Fineberg

unread,
May 2, 2013, 12:11:10 PM5/2/13
to discuss...@googlegroups.com
Paul,

Do you mean without ICE or without STUN?  ICE is required but if you are on the same subnet, STUN isn't required and you can just not configure a STUN server.

Adam

On 5/1/13 5:09 PM, Paul Peard wrote:
Very early webrtc days for me - but I am interested in the "intranet" use case - from what I see of the API's (in chrome) it does not seem possible to create a peer connection without ICE - what have I missed - if I do just pass a NULL string to the array - what "candidates" do I get ?

Please excuse if this a sumb newbiw question - I am now 3 days into my webrtc journey.

-- 
Regards,
Adam

Paul Peard

unread,
May 2, 2013, 1:34:53 PM5/2/13
to discuss...@googlegroups.com
Adam

Exactly - the benefit of +sleep means I realise I should not post when tired,

Yes - I am running on an intranet, no nat and no requirement (or desire) for STUN or TURN. I was chasing how to "not" provide a STUN server. Do I just specify an empty string or should it be something like "stun:" with no name or ip address.

Paul

Kaiduan Xie

unread,
May 2, 2013, 2:00:28 PM5/2/13
to discuss...@googlegroups.com
new webkitRTCPeerConnection(null);

/Kaiduan

Paul Peard

unread,
May 9, 2013, 7:11:38 PM5/9/13
to discuss...@googlegroups.com
thanks- up and running
Reply all
Reply to author
Forward
0 new messages