rustdesk / rustdesk-server

RustDesk Server Program
https://rustdesk.com/server
GNU Affero General Public License v3.0
6.46k stars 1.35k forks source link

What is the function of server and relay? #19

Open elfzweik opened 2 years ago

elfzweik commented 2 years ago

I read the document but cannot get the point what the function of both servers are? It results the setting of relay and rendezvous server. For example, the remote is in China, say Shanghai, the local is in USA. And I have 3 VPS which can be used as rendezvous and relay servers. Say, there are each VPS located in USA, Japan and Shanghai. The question is which VPS shall be used as rendezvous server? The closest to the local or to the remote? Where should the relay be located? Close to local, remote, or the rendezvous server?

rustdesk commented 2 years ago

You may have to modify rustdesk-server to satisfy your scenario for the time being.

paspo commented 2 years ago

If I understood this correctly, when multiple servers are specified (via command line) to hbbs, the daemon will select each server in a round-robin fashion. Which is obviously not perfect, if you have clients all around the world. The round-robin solution is ok for most use cases, in fact most installation will have only one relay, on the same machine.