Skip to content

Sanher/Rustdesk_wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RustDesk Wrapper

Runtime wrapper for the RustDesk OSS server.

This repository is not a Home Assistant app repository (formerly called an add-on repository). It only contains the wrapper runtime used to start and supervise the RustDesk services.

Home Assistant app/add-on packaging, build configuration, and Supervisor-facing metadata live in the parent repository that consumes this wrapper.

Runtime entrypoint

  • run.sh: canonical runtime entrypoint for consumers of this repository

Supported inputs

  • PUBLIC_HOST: optional public hostname or IP address used to print the recommended RustDesk client configuration in the logs
  • /data/options.json: optional compatibility source for public_host

Runtime behavior

  • Starts hbbs and hbbr
  • Persists RustDesk data in /data
  • Copies the public key to /data/public_key.txt
  • Prints the public key in the logs
  • Prints recommended RustDesk client values when PUBLIC_HOST is available

Network notes

This wrapper does not expose RustDesk to the internet by itself.

Common ways to reach the server from outside your local network are:

  • Tailscale or another VPN
  • Port forwarding plus a public hostname or IP address

DuckDNS is a valid option if you want a simple public hostname for PUBLIC_HOST.

RustDesk usually needs these ports when you are not using a VPN:

  • 21115/tcp
  • 21116/tcp
  • 21116/udp
  • 21117/tcp

If your ISP uses CGNAT, direct port forwarding may not work. In that case, use Tailscale, another VPN, or a different public entrypoint.

Always test RustDesk from a network outside your LAN, for example from mobile data, before considering the setup complete.

Client setup

When PUBLIC_HOST is configured, the wrapper logs print the recommended RustDesk client values.

Typical client values are:

  • ID Server: your public hostname or IP
  • Key: the public key shown in the logs or stored in /data/public_key.txt
  • Relay Server: usually the same public hostname if you want to set it explicitly

About

A wrapper for Rustdesk server in Home Assistant

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages