Hardcoding Custom Settings

Custom Server

To hardcode custom server settings into your executables you must build the client yourself on your machine or with GitHub Actions.

If you set either of these values without setting the other, your executable will not work!

You can set the following environment variables on your OS and RustDesk will use those variables when compiling your client rather than the default rustdesk.com servers.

If you do not know how to set an environment variable on your system you should be able to find documentation for your OS online that will explain this.


This variable should be set to your server URL.

This should be a string such as



This variable will be your public key, more information on the key is available here.

This should be a string such as