Ports required for RustDesk Server self-hosting depends largely on your environment and what you want to do with RustDesk. The Examples shown throughout the docs will have generally have all ports suggested to be opened.
Core Ports: \
TCP 21115-21117 \
UDP 21116
The above are the minimum required ports for RustDesk to work, these handle the signal and relay ports as well as NAT traversal.
To check ports are opened and working you can use `test-netconnection domain.com -p 21115` with PowerShell or [CanYouSeeMe.org](https://canyouseeme.org/).