This is a super simple working demo implementation with only one relay connection allowed, without NAT traversal, persistence, encryption and any other advanced features. But it can be your good starting point to write your own RustDesk server program.
IP=<your public ip> cargo run