webrtc / FirebaseRTC

Codelab for building a WebRTC Video chat application using Firebase Cloudstore.
https://webrtc.org
490 stars 340 forks source link

The video only works on the local or the same Wi-Fi network #14

Open ahmadshaar84 opened 4 years ago

ahmadshaar84 commented 4 years ago

Hello dear I uploaded the project to my server and when i tested it I found it only works when the caller and callee are on the same network the message on console was 'Connection state change: failed' can you help me with this issue

renanBritz commented 4 years ago

https://webrtc.org/getting-started/turn-server

ahmadshaar84 commented 4 years ago

Thanks a lot for your reply can you please provide me with valid turn-server just to test it

renanBritz commented 4 years ago

@ahmadshaar84 Unfortunately there are no turn servers available for free. You can create your own with COTURN (using aws or gcp for example).

JaviLopezG commented 4 years ago

I am testing the code from my computer and my mobile (my mobile is not connected to my WiFi, it only has the 4G connection enabled) and it works for me. It's published on https://webrtc-org-example.web.app/ if you want to try it.

There seem to be some public turn servers, but I didn't test them: https://gist.github.com/sagivo/3a4b2f2c7ac6e1b5267c2f1f59ac6c6b

natkuhn commented 3 years ago

xirsys.net has a free tier for their turn server service