Hello,I'm running a slightly modified version of the https://bitbucket.org/webrtc/codelab Step-6 code, which uses node.js, socket.io, node-static for the signaling channel.I installed the signaling code (node.js, socket.io, node-static) on a public server, so I can test the Step-6 code over the Internet.With two Chrome clients on the same network, the audio/video chat works perfectly. But, with two Chrome clients on different networks, the audio/video chat doesn't work.On the other hand, https://apprtc.appspot.com works fine with two Chrome clients on different networks (or on the same network.)Is WebRTC 100% guaranteed not to work peer-to-peer (i.e. without TURN), when one or both clients are behind NAT routers?
Is there a free public TURN server that I can use for testing? If not, can you recommend an open-source TURN server?
--Thank you.
---
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/921b53a6-0e7b-4e49-bb3b-ccd2080bab3d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Jo Yum,>>Is there a free public TURN server that I can use for testing?You can use http://numb.viagenie.ca/ . You can also use http://www.anyfirewall.com/if your username contain '@' , you should configure in the following way.var config ={'iceServers':[{'url': 'stun:66.228.45.110:3478'},{'url': 'turn:66.228.45.110:3478?transport=udp','credential':'xxxxx','username': 'xx...@yyyy.com'}]};>>One of the problems with testing a WebRTC app is that you need at least two clients on two different networks.>>I tried using a cable network and a mobile network from the same physical location, but mobile data gets expensive with WebRTC video.>>Any ideas how to test from one location on two different networks without spending a lot of money?Yes. you can do this. Just add multiple networks in your PC ( with corresponding gateway). You can test all combination of P2P and Relay if you filter candidates properly.
Example to force relay.var index = pc2.localDescription.sdp.search('typ relay');if (index>=0){console.log('callback2: adding ice candy to pc1');pc1.addIceCandidate(new RTCIceCandidate(event.candidate));}>>Also, how do you secure your TURN server from unauthorized users, when the TURN auth credentials are inside your client JavaScript code?You should use REST api to secure credentials. REST api uses time limited credentials. so it is safe to use in the java script. rfc5766-turn-server supports REST api.anyfirewall.com also supports REST api.Thanks.
On Thursday, June 11, 2015 at 11:40:21 AM UTC+6, Jo Yum wrote:Hello,I'm running a slightly modified version of the https://bitbucket.org/webrtc/codelab Step-6 code, which uses node.js, socket.io, node-static for the signaling channel.I installed the signaling code (node.js, socket.io, node-static) on a public server, so I can test the Step-6 code over the Internet.With two Chrome clients on the same network, the audio/video chat works perfectly. But, with two Chrome clients on different networks, the audio/video chat doesn't work.On the other hand, https://apprtc.appspot.com works fine with two Chrome clients on different networks (or on the same network.)Is WebRTC 100% guaranteed not to work peer-to-peer (i.e. without TURN), when one or both clients are behind NAT routers?Is there a free public TURN server that I can use for testing? If not, can you recommend an open-source TURN server?Thank you.
--
---
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/2ca46807-7c37-477a-a893-79d2e0695fea%40googlegroups.com.
Yes. For your convenience I have attached two files.Thanks
Thank you both
--
---
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/f96abc7e-32c5-433a-bd7b-9e029cd2e86a%40googlegroups.com.