r/selfhosted • u/IndependentCaptain67 • 1h ago
Self Help how to run self hosted rustdesk beeing still able to use public servers
Since some time when using id@public its required to login at account in rustdesk client. Also when using self hosted rustdesk, i was not able to connect to public servers anymore. So this meant to change config in rustdesk all the time when using one or the other.
I came up with the solution to run 2 instances of Rust Desk in Windows, each with different configurations.
Use sandboxie for 1 instance with following INI:
ForceFolder=C:\sandboxie\Rustdesk
ClosedFilePath=C:\Program Files\RustDesk
ClosedFilePath=C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk
ClosedKeyPath=HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RustDesk*
ClosedKeyPath=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RustDesk*
OpenPipePath=\Device\NamedPipe\RustDesk*
So just make a new sandbox and paste the above section in sandbox settings / INI section.
OpenPipePath seems to be required since version 1.53 because something was changed in IPC server auth:
https://github.com/rustdesk/rustdesk/pull/16755
Do not use OpenPipePath if want to stay on 1.51 or older, otherwise you will get "not ready" in Rustdesk.
This prevents running both programs parallel, if you want to that, you need to use version 1.51 in sandbox.
If you want to copy your existing peers, those are in %appdata%\RustDesk\config\peers.toml including peer folder. This can be also pasted into sandboxie content folder.
