flutter-webrtc / flutter-webrtc-server

A simple WebRTC signaling server for flutter-webrtc.
MIT License
756 stars 304 forks source link

Why does this not work over the internet? #16

Closed cdharris closed 5 years ago

cdharris commented 5 years ago

Hi! Thanks for what looks like the start of a great library.

Do you know why it doesn't work over the internet? Even with appropriate STUN/TURN servers?

(I notice you say it only works on local LAN)

cloudwebrtc commented 5 years ago

You need to deploy the turn server, then you can work on the internet.

cdharris commented 5 years ago

hmm I tried with my own turn server and that still didn't work. Also tried your example at demo.cloudwebrtc.com:8086 . That doesn't work either with two mobile chrome browsers over internet. (The clients connect, and both local video is streamed locally, but the remote video is just a grey screen and never starts streaming. Firefox says ICE failed)

cloudwebrtc commented 5 years ago

You can check if the server is normal by the following example, and check the browser log to see if any realy candidate have been collected.

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

cdharris commented 5 years ago

Thanks, finally got the turn configuration setup working. Coturn was a bit difficult to work out :)

PrakharPatidar commented 4 years ago

Hi @cdharris . I am also facing the same issue. I am able to connect on local devices with the same LAN network but not over the internet. I have also configured TURN serer as below: == >

config: {
                "iceServers":[{"urls":["turn:numb.viagenie.ca?transport=tcp"],"username":"webrtc@live.com","credential":"muazkh"}],
}

Could you please share how did you solve this issue?

abheet-98 commented 4 years ago

@PrakharPatidar Hey hope you are doing well ! I just wanted to know if you got the accurate P2P call between two mobile devices using the server running on a chrome browser where mobile devices and the laptop are connected to the same Wifi connection? Actually my server starts running on the browser and when I type the ip address in the mobile I can see only the blank screen and the mobile device don't get added to the list of devices on the server.

image

image

If you could just help me to have a P2P call between 2 mobile devices using this server.

Thanks in advance!