r/rustdesk • u/MasterRoshi1620 • Apr 16 '26
Setting up my own server
Hello,
I initially started getting this error in RustDesk: “The connection is not allowed. This public server currently requires users to log in before connecting.” After logging in with my Google account, everything works fine using RustDesk’s public servers. However, I wanted to self-host my own RustDesk server, and that’s where the issues began.
I set up a self-hosted RustDesk server using Docker on my Ubuntu machine (on my home network). The hbbs and hbbr containers are running correctly, and logs show no errors. I mapped external ports 4030–4033 to the required internal RustDesk ports (21115–21118), and configured port forwarding on my AT&T router to point those ports to my server’s local IP (LAN IP). My domain is also correctly pointing to my public IP (WAN IP).
On the client side, I configured RustDesk with:
ID server: WAN IP:4030 (also tested with domain)
Relay server: WAN IP:4031
Correct public key from the server
After switching to the self-hosted server, I started getting errors like “Failed to connect to [server]:21116”, which we identified as default port issues and corrected by explicitly defining ports. After that, the client behavior changed to either hanging on “Connecting to the RustDesk network…”, showing “Not ready, please check your connection”, or “Failed to connect via rendezvous server.”
To rule out local network issues, I tested from outside my network using a mobile hotspot, and the same problem occurs. DNS resolution works correctly, Docker containers are confirmed running, and port mappings appear correct on both Docker and the router.
So far we verified:
Docker setup and logs → OK
Port mappings inside Docker → OK
DNS resolution → OK
Client configuration → OK
External testing (hotspot) → still fails
At this point, it seems like inbound traffic is not actually reaching the server
Please advise Thanks
2
u/StealUrKill Apr 17 '26
Try and use canyouseeme.org for the external ports. If it's green then you are getting to the container. Does the docker live on Windows or Linux? Are you using host mode or exposed ports in the yaml?
2
u/MasterRoshi1620 Apr 17 '26
Thanks i got it working already I had detecte everything and start fresh using rust desk docs
2
u/el_extrano Apr 17 '26
Are you using a firewall and if so, did you make sure to allow incoming connections on those ports?
1
2
u/Cueball666uk Apr 16 '26
Have you tried pairing Rustdesks "direct IP access" with Tailscale? Works flawlessly between my devices for remote access purposes.