Reliability & Uptime
Problem: Public servers can be slow, overloaded, or down. Solution: Your own server is always available when you need it, with predictable performance.
Open Source Remote Desktop
RustDesk is an open-source remote desktop application that lets you control another computer remotely. This guide will show you how to set up your own server for reliable, continuous connections without depending on third-party infrastructure.
Open source under GPL license
Full control over your infrastructure
Windows, Mac, Linux, iOS, Android
Before diving into setup, let's understand the basic concepts of how remote desktop software works.
Your computer — The device you're physically sitting in front of. This is where you control things from. In RustDesk, you install the client application here to connect to other computers.
The other computer — The device you want to access from far away. You install RustDesk on this computer too, and it waits for incoming connections so you can control it.
The software you use — This is the RustDesk app installed on both computers. When you open it to connect to another computer, it acts as the "client" making the request.
The middleman — A server in the cloud that helps your computers find each other and relay data when direct connections aren't possible (like when behind firewalls or routers).
While RustDesk provides free public servers, running your own server gives you significant advantages.
Problem: Public servers can be slow, overloaded, or down. Solution: Your own server is always available when you need it, with predictable performance.
Problem: Your connection traffic routes through someone else's servers. Solution: With your own server, your data stays under your control—no third parties involved.
Problem: Public servers might be geographically far from you. Solution: Place your server near your location for faster response times and smoother remote control.
Problem: Free public servers may throttle bandwidth or limit connections. Solution: Your server, your rules—use it as much as you need without restrictions.
You'll need a Linux server (VPS or cloud instance) to host your RustDesk relay server. Here's how to set it up step by step.
Requirements: Any Ubuntu, Debian, or CentOS Linux server with at least 1GB RAM and 10GB storage.
🚀 Recommended VPS Provider
Get Hostinger VPS - $4.99/month✓ Philippines-based • ✓ Singapore datacenter • ✓ Low latency • ✓ Easy setup
Alternative Providers:
What you need: SSH access and a public IP address. Note down your server's IP address—you'll need it later.
⚠️ Disclaimer: Server setup procedures may change over time as hosting providers update their interfaces. The instructions below are accurate as of November 2025. If you encounter differences, consult your provider's current documentation.
Step 1: Purchase VPS
Step 2: Access VPS Panel
Step 3: Connect via SSH
ssh root@YOUR_VPS_IP_ADDRESS
Enter your root password when prompted. Windows users: use PuTTY or Windows Terminal.
Step 4: Update System
sudo apt update && sudo apt upgrade -y
Step 5: Configure Firewall (Hostinger-specific)
Hostinger has a built-in firewall in hPanel. You need to open ports in TWO places:
A. In Hostinger hPanel:
B. In Ubuntu UFW (via SSH):
sudo ufw allow 21115:21119/tcp
sudo ufw allow ssh
sudo ufw enable
sudo ufw status
Step 6: Proceed to Step 2
Your Hostinger VPS is now ready! Continue with Step 2 below to download and install RustDesk server.
💡 Tip: Hostinger's Singapore datacenter provides ~20-50ms latency to Philippines, making it ideal for smooth RustDesk connections within PH/SEA region.
SSH into your server and download the latest RustDesk server software:
Ubuntu/Debian:
cd /opt
sudo wget https://github.com/rustdesk/rustdesk-server/releases/download/1.1.11-1/rustdesk-server-linux-amd64.zip
sudo apt install unzip -y
sudo unzip rustdesk-server-linux-amd64.zip
RustDesk needs these ports open on your server:
Ubuntu/Debian firewall commands:
sudo ufw allow 21115:21119/tcp
sudo ufw allow 21116/tcp
sudo ufw reload
Start the two RustDesk server components:
cd /opt/rustdesk-server
sudo ./hbbs -r YOUR_SERVER_IP &
sudo ./hbbr &
Replace YOUR_SERVER_IP with your actual server IP address (e.g., 159.195.14.208)
What these do:
For added security, RustDesk generates an encryption key. Find it here:
cat /opt/rustdesk-server/id_ed25519.pub
Copy this key—you'll paste it into your RustDesk clients later for encrypted connections.
To ensure your RustDesk server starts automatically after reboots, create systemd service files:
Create hbbs service:
sudo nano /etc/systemd/system/rustdesk-hbbs.service
Paste this content:
[Unit]
Description=RustDesk ID Server
After=network.target
[Service]
Type=simple
ExecStart=/opt/rustdesk-server/hbbs -r YOUR_SERVER_IP
WorkingDirectory=/opt/rustdesk-server
Restart=always
[Install]
WantedBy=multi-user.target
Then enable and start the services:
sudo systemctl enable rustdesk-hbbs
sudo systemctl start rustdesk-hbbs
sudo systemctl status rustdesk-hbbs
Repeat the same process for hbbr (relay server).
Now that your server is running, configure the RustDesk application on your computers to use it.
On the remote computer (the one you want to access):
On your local computer (the one you're using now):
Common questions about RustDesk and self-hosting.
No, RustDesk works with free public servers. However, for reliable, continuous connections that don't depend on third-party availability, your own server is highly recommended. Public servers can be slow or unavailable.
As low as $5/month for a basic VPS from providers like DigitalOcean, Linode, or Vultr. This is much cheaper than commercial remote desktop subscriptions (TeamViewer: $50+/month).
Yes! RustDesk uses end-to-end encryption. When you use your own server, you have full control—no data goes through third parties. Enable the public key authentication for even stronger security.
Yes! As long as both computers are configured to use your server and the remote computer is running RustDesk, you can connect from anywhere with internet access.
Your connections won't work until the server is back up. Choose a reliable hosting provider with good uptime. You can also set up monitoring alerts. Most VPS providers offer 99.9%+ uptime.
Yes! RustDesk provides official Docker images. Check the GitHub repository for Docker Compose examples and instructions.
RustDesk is completely free and open source. Download the client and start using it with public servers today, or follow this guide to set up your own server for the best experience.