muaz-khan / WebRTC-Experiment

WebRTC, WebRTC and WebRTC. Everything here is all about WebRTC!!
https://www.webrtc-experiment.com/
MIT License
11.77k stars 3.95k forks source link

Does not work cross network. #690

Open mozgenn opened 4 years ago

mozgenn commented 4 years ago

When I host my broadcasting 1 - many users, it works when Users connect from my own network but doesn't work when someone tries to connect out of my network to see my broadcasting video. I shifted to TURN completely, but still having issues. Users outside of my network can't see my broadcasting video.

@muaz-khan any help?

KiltzX commented 4 years ago

What rtc server and socket you are using ?

mozgenn commented 4 years ago

@KiltzX creates our on STURN and TURN servers didn't work with anyone. For socket, we are using socketio(nodeJS) on our separate server.

KiltzX commented 4 years ago

In my case, i used STURN TURN servers from google : 'stun:stun.l.google.com:19302', 'stun:stun1.l.google.com:19302', 'stun:stun2.l.google.com:19302', 'stun:stun.l.google.com:19302?transport=udp',

try this : var connection = new RTCMultiConnection(); connection.socketURL = YOU_RTC_SERVER + '/'

i newbie in rtc connection, i am developer in one company, we use RTCMultiConnection from Muaz to video call

KiltzX commented 4 years ago

i recommend you to use signaling server : https://github.com/muaz-khan/RTCMultiConnection-Server

xujingzhou commented 3 years ago

https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/