dkrivoruchko / ScreenStream

ScreenStream Android App
https://screenstream.io
MIT License
1.57k stars 322 forks source link

4G LTE Not working #262

Open SMDIndomitable opened 1 week ago

SMDIndomitable commented 1 week ago

Hi, do you know why when I using 4G LTE on WebRTC, I am not able to connect to the stream?

When I am connected to the same network as my 4G LTE using mobile hotspot, I am able to watch the stream. However, when I am connected to another network, it attempts to load the stream, but fails after.

Is this because of some permissions problem?

dkrivoruchko commented 1 week ago

Hi, most likely this is a network issue. Many providers block peer-to-peer communication, casing WebRTC to fail to establish connection. There is a technical solution for such problem - add STUN servers that relay streaming data. Free ScreenStream app don't have such serves as they are quite costly. Maybe in some distant future there will be a paid option for this.

SMDIndomitable commented 1 week ago

Thank you for the fast response. Do you know if there are any other ways for doing long distance streaming using LTE utilising this application? If webrtc is the only way, is it possible to make the application use our own webRTC server?

dkrivoruchko commented 1 week ago

The problem is NOT with WebRTC server, but with network restrictions from ISPs. You can try to use VPNs, but there is no one single & simple solution for your problem (except STUN servers). I'm sorry,

SMDIndomitable commented 1 week ago

Thank you once again. Yep, I understand that the problem is not with the WebRTC. What I meant is that if I am using WebRTC, I would prefer for it to go through our own WebRTC server due to our project requirements. I was wondering it is possible for us to achieve this using the application?

dkrivoruchko commented 1 week ago

In your case you can do:

  1. Host your own TURN server(s) - there are many open source solutions.
  2. Host your own ScreenStream Web server
  3. Use this app and point it to your TURN and ScreenStream servers.

Both servers MUST be publicly available. It should work in theory.

We may experiment together as I also interested in introducing some TURN server to ScreenStream

SMDIndomitable commented 1 week ago

Sure, I would love to experiment together. I will let you know when I start trying. Thank you so much for the help!