You need to run a signaling server running somewhere. You cant run a signaling server in browser. When doing screen sharing between two browsers it basically goes to external signaling server on internet and asks credentials and then doing peer to peer communication.
Deskreen can run without access to world wide web with its own local signaling server.
The speed is also much better when doing direct communication through local signaling server running on host machine.
Hope that helps you to understand it better.
Cheers
That should be the standard setup. Allowing any access to your screen via a remote server is a huge security hole.
> The speed is also much better when doing direct communication through local signaling server running on host machine.
This should only affect the setup time right? As soon as the connect is established the signaling server should not be required.
You may use what better fits your use case. But I want to mention that I made and end-to-end encryption for initial signals to be sent to each other. Signals are basically encrypted and hard to hack. Also deskreen has a lot of alrets and confirmations so you can always check your devices IPs. Also it has Lock Room feature -> meaning as soon as someone connected to a socket, it is immediately locked and no one can access it except 2 host and client devices.
But you can have a look in source code and maybe find some security leaks. Please submit the issue if you find it.
By the way I forgot to reference simple peer on github, let me fix that soon.