2023-07-16 00:33:20 +02:00
---
title: FAQ
2023-07-16 05:13:13 +02:00
weight: 600
2023-07-16 00:33:20 +02:00
---
2023-10-10 21:46:33 +02:00
### How can I install with the Simple Install Script?
2023-10-21 21:56:52 +02:00
1. Get your license from [https://rustdesk.com/pricing.html ](https://rustdesk.com/pricing.html ), check [license ](https://rustdesk.com/docs/en/self-host/rustdesk-server-pro/license/ ) page for more details.
2023-07-16 18:55:01 +02:00
2. Spin up a VPS, bare metal or Linux VM.
3. If you want to use DNS and SSL create a DNS name i.e. `rustdesk.yourdomain.com` .
2024-06-27 06:08:44 +02:00
4. [this page ](https://rustdesk.com/docs/en/self-host/rustdesk-server-pro/installscript/#install ).
2023-07-16 18:55:01 +02:00
5. Copy and paste the command into your Linux terminal.
2023-07-16 00:33:20 +02:00
6. Follow the prompts as they guide you through the install.
2024-06-27 06:08:44 +02:00
7. Once the install is complete `https://rustdesk.yourdomain.com` or `http://youripaddress:21114` .
2023-07-16 00:33:20 +02:00
8. Log in with the username `admin` and password `test1234` .
9. Enter your license code purchased in step 1.
2023-10-10 21:46:33 +02:00
### How can I convert from RustDesk Server Open Source to RustDesk Server Pro?
2023-10-21 21:56:52 +02:00
1. Get your license from [https://rustdesk.com/pricing.html ](https://rustdesk.com/pricing.html ), check [license ](https://rustdesk.com/docs/en/self-host/rustdesk-server-pro/license/ ) page for more details.
2023-07-16 18:55:01 +02:00
2. Open TCP port 21114.
2023-07-16 00:33:20 +02:00
3. Log into your RustDesk Server.
2023-07-17 12:21:04 +02:00
4. If you didn't already use DNS and want to use SSL create a DNS name i.e. `rustdesk.yourdomain.com` .
2024-06-27 06:08:44 +02:00
5. [this page ](https://rustdesk.com/docs/en/self-host/rustdesk-server-pro/installscript/#convert-from-open-source ).
2023-07-16 18:55:01 +02:00
6. Copy and paste the command into your Linux terminal.
2023-07-16 00:33:20 +02:00
7. Follow the prompts as they guide you through the install.
8. Once the install is complete go to `https://rustdesk.yourdomain.com` or `http://youripaddress:21114` .
9. Log in with the username `admin` and password `test1234` .
10. Enter your license code purchased in step 1.
2023-10-10 21:46:33 +02:00
### There is a new version of RustDesk Server Pro out, how can I upgrade?
2024-06-27 06:08:44 +02:00
You'd better back up data files (sqlite3 files etc) first, https://github.com/rustdesk/rustdesk-server-pro/discussions/184#discussioncomment-8013375.
2024-06-27 06:19:19 +02:00
#### If you installed with script
2024-06-27 06:08:44 +02:00
1. [this page ](https://rustdesk.com/docs/en/self-host/rustdesk-server-pro/installscript/#upgrade ).
2023-07-16 18:55:01 +02:00
2. Copy and paste the command into your Linux terminal.
2023-07-16 05:21:37 +02:00
3. Follow the prompts as they guide you through the upgrade.
2024-06-27 06:08:44 +02:00
#### Docker Compose
```
docker compose up -d --build --pull always
```
2024-06-27 06:17:48 +02:00
But this dependos on your docker version, for more discussion, check this, https://stackoverflow.com/questions/37685581/how-to-get-docker-compose-to-use-the-latest-image-from-repository
2024-06-27 06:08:44 +02:00
#### Docker
```
docker ps
docker stop < CONTAINER ID >
docker rm < CONTAINER ID >
docker rmi < IMAGE ID >
docker run ..... # same as you installed it before
```
For more details, check this, https://www.cherryservers.com/blog/how-to-update-docker-image
2023-07-16 00:33:20 +02:00
2023-10-10 21:46:33 +02:00
### I installed with the script, how can I start and stop services?
2023-07-16 18:55:01 +02:00
The services use systemd so can be started and stopped using `sudo systemctl stop|start|restart rustdesk-hbbs|rustdesk-hbbr` e.g. `sudo systemctl restart rustdesk-hbbs` .
2023-07-16 00:33:20 +02:00
2023-10-10 21:46:33 +02:00
### I installed with the script, how can I view the Linux logs?
2023-10-23 22:08:29 +02:00
The logs are stored in `/var/log/rustdesk-server` , you can view them using `tail /var/log/rustdesk-server/hbbs.log` or `tail /var/log/rustdesk-server/hbbs.error` .
2023-07-16 00:33:20 +02:00
2023-10-10 21:46:33 +02:00
### I installed with the script, how can I check the status of the RustDesk services?
2023-07-16 18:55:01 +02:00
To check the status `sudo systemctl status rustdesk-hbbs|rustdesk-hbbr` e.g. `sudo systemctl status rustdesk-hbbs` .
2023-07-16 00:33:20 +02:00
2023-10-10 21:46:33 +02:00
### How can I change the admin password?
2024-06-27 06:08:44 +02:00
1. `https://rustdesk.yourdomain.com` or `http://youripaddress:21114` .
2023-07-16 00:33:20 +02:00
2. Log in with the username `admin` and password `test1234` .
3. Click on `admin` in the top right hand corner.
4. Click on `Settings` .
5. Enter your new password in the boxes provided.
2023-10-10 21:46:33 +02:00
### How can I move my license to a new server?
2023-08-23 08:34:19 +02:00
Please see [here ](https://rustdesk.com/docs/en/self-host/rustdesk-server-pro/license/#invoices-and-migration ).
2023-07-16 00:33:20 +02:00
2023-10-10 21:46:33 +02:00
### Emails aren't working from my VPS
2023-07-17 12:21:04 +02:00
A lot of VPS providers block ports 465 and 25.
2023-07-16 19:21:37 +02:00
2023-07-17 12:21:04 +02:00
A simple way to check is using telnet. To test in the Linux terminal type `telnet your.mailserver.com 25` . On Windows use PowerShell with `Test-NetConnection -ComputerName your.mailserver.com -Port 25` .
2023-07-16 19:21:37 +02:00
2023-07-17 12:21:04 +02:00
Your mail server may not be using port 25. Please make sure you are using the correct ports.
2023-07-16 19:21:37 +02:00
2023-10-10 21:46:33 +02:00
### Can I deploy RustDesk using PowerShell or similar?
2023-10-01 13:57:32 +02:00
Sure, you can find scripts to aid deployment [here ](https://rustdesk.com/docs/en/self-host/client-deployment/ ).
2023-07-16 19:21:37 +02:00
2023-10-10 21:46:33 +02:00
### I have installed RustDesk Server Pro manually but the API web console isn't behind SSL, how can I secure this?
2023-07-17 12:21:04 +02:00
Use a proxy like Nginx, the simple install script has one, it's really simple. [This is how we do it ](https://github.com/rustdesk/rustdesk-server-pro/blob/493ad90daf8815c3052ff4d0d4aa9cc07e411efa/install.sh#L252 ).
2023-07-16 19:21:37 +02:00
2023-07-17 12:21:04 +02:00
Similar configs should work with Traefik v2, HAProxy, Apache Proxy and Cloudflare Tunnel.
2023-07-16 19:21:37 +02:00
2023-10-10 21:46:33 +02:00
### How can I file a bug report?
2023-07-16 19:24:03 +02:00
Please file via [GitHub ](https://github.com/rustdesk/rustdesk-server-pro/issues ).
2023-07-16 19:29:30 +02:00
2023-10-10 21:46:33 +02:00
### Why if I am self hosting is this not free and open source?
2023-07-16 19:54:18 +02:00
1. RustDesk has become a full time job for a number of people, they have lives, wives, jobs and kids which all demands attention and costs money!
2023-07-16 22:31:01 +02:00
2. We want to be here and still making great progress in years to come.
2023-07-17 12:21:04 +02:00
3. The open source version will continue to be open source and we encourage others to make developments in line with the AGPL license.
2023-07-16 19:54:18 +02:00
2023-10-10 21:46:33 +02:00
### I can't connect to devices in different groups, why is this?
2023-07-17 16:49:10 +02:00
This is easily sorted, you need to allow cross-group access.
2023-08-27 21:03:39 +02:00
1. Add new groups.
2. Click `Edit` .
2023-07-17 16:49:10 +02:00
3. Select the relevant groups you want access (it automatically adds them in the corresponding group).
2023-10-10 21:46:33 +02:00
### How can I get configs automatically?
2023-07-17 16:49:10 +02:00
Configs are generated automatically.
2023-07-18 05:52:42 +02:00
1. Download the newest clients from [GitHub ](https://github.com/rustdesk/rustdesk/releases/latest ).
2023-08-27 21:03:39 +02:00
2. On the main page in the web console click on `Windows EXE` .
2023-07-17 16:49:10 +02:00
3. Fill in the host and API (if different from your config).
2023-08-27 21:03:39 +02:00
4. Click `Submit` .
5. Scan QR Code on Android and rename exe to what has been generated.
2023-07-17 16:49:10 +02:00
2023-10-10 21:46:33 +02:00
### Do you offer hosting for RustDesk Server Pro?
2023-07-16 19:54:18 +02:00
Please get in touch with our [sales ](mailto://sales@rustdesk.com ) team.
2023-07-16 20:00:45 +02:00
2023-10-10 21:46:33 +02:00
### Is there somewhere I can see video setup guides?
2023-07-17 12:21:04 +02:00
Yes! We have a [YouTube Channel ](https://youtube.com/@RustDesk ).
2023-08-21 21:46:01 +02:00
2024-07-08 11:14:08 +02:00
### Why are my logs / device names are empty?
Ensure API is set correctly on the device being controlled, https://github.com/rustdesk/rustdesk-server-pro/issues/21#issuecomment-1637935750.
2023-08-21 21:53:06 +02:00
2023-10-10 21:46:33 +02:00
### How can I uninstall RustDesk Server Pro?
2023-08-27 21:03:39 +02:00
Run the following commands:
```sh
2023-08-21 21:53:06 +02:00
sudo systemctl stop rustdesk-hbbs.service
sudo systemctl disable rustdesk-hbbs.service
sudo systemctl stop rustdesk-hbbr.service
sudo systemctl disable rustdesk-hbbr.service
sudo systemctl daemon-reload
sudo rm /etc/systemd/system/rustdesk-hbbs.service
sudo rm etc/systemd/system/rustdesk-hbbr.service
sudo rm /usr/bin/hbbs
sudo rm /usr/bin/hbbr
sudo rm -rf /var/lib/rustdesk-server/
sudo rm -rf /var/log/rustdesk-server/
```
2023-08-27 21:03:39 +02:00
If the script installed Nginx then remove using:
```sh
2023-08-21 21:53:06 +02:00
sudo apt remove nginx
```
2023-08-28 23:00:56 +02:00
2023-10-10 21:46:33 +02:00
### How can I remove devices from the device list in the web console?
2023-08-28 23:00:56 +02:00
Disable and then delete will now be available.
2023-10-10 21:46:33 +02:00
### How can I update RustDesk with PowerShell?
2023-08-28 23:00:56 +02:00
```ps
$ErrorActionPreference= 'silentlycontinue'
$rdver = ((Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RustDesk\").Version)
2023-10-23 22:08:29 +02:00
if ($rdver -eq "1.2.3")
2023-08-28 23:00:56 +02:00
{
2023-10-10 21:46:33 +02:00
Write-Output "RustDesk $rdver is the newest version."
Exit
2023-08-28 23:00:56 +02:00
}
2023-10-01 13:57:32 +02:00
if (!(Test-Path C:\Temp))
{
New-Item -ItemType Directory -Force -Path C:\Temp > null
2023-08-28 23:00:56 +02:00
}
2023-08-31 22:05:54 +02:00
cd C:\Temp
2023-08-28 23:00:56 +02:00
2023-10-23 22:08:29 +02:00
Invoke-WebRequest "https://github.com/rustdesk/rustdesk/releases/download/1.2.3/rustdesk-1.2.3-x86_64.exe" -Outfile "rustdesk.exe"
2023-08-28 23:00:56 +02:00
Start-Process .\rustdesk.exe --silent-install -wait
```
2023-10-20 14:36:29 +02:00
2023-10-21 21:56:52 +02:00
### `Key mismatch` error
Please configure your client with [correct key ](https://rustdesk.com/docs/en/self-host/rustdesk-server-pro/relay/ ).
### `Failed to connect to relay server` error
Please make sure `hbbr` is running. More information about `hbbr` , you can find [here ](https://rustdesk.com/docs/en/self-host/rustdesk-server-oss/install/ ).
If your `hbbr` does not run on the same machine of `hbbs` , or you have multiple relay servers, or you do not run it on default port `21117` , you have to tell it to `hbbs` explicitly. Please check [here ](https://rustdesk.com/docs/en/self-host/rustdesk-server-pro/relay/ ).
2023-10-20 14:36:29 +02:00
2023-11-30 11:40:27 +01:00
### Reset MFA for Admin account
https://github.com/rustdesk/rustdesk/discussions/6576
2024-05-21 22:05:22 +02:00
### Set up HTTPS for web console manually
2024-04-07 12:52:28 +02:00
2024-05-21 22:05:22 +02:00
#### 1. Buy a domain name and resolve it to your server's IP address.
2024-04-07 12:52:28 +02:00
* Buy a domain name from a domain registrar like GoDaddy, Namecheap, or Namesilo.
2024-05-21 22:05:22 +02:00
* Resolve the domain name to your server's IP address with one of the following:
2024-04-07 12:52:28 +02:00
- Your domain registrar's control panel (recommended)
2024-05-21 22:05:22 +02:00
- [DNS providers ](https://en.wikipedia.org/wiki/List_of_managed_DNS_providers )
2024-04-07 12:52:28 +02:00
2024-05-21 22:05:22 +02:00
For example, if you buy a domain name `example.com` from `Namesilo` and your server's IP address is `123.123.123.123` , you want to use `rustdesk.example.com` subdomain as your HTTPS web console address. You need to open [link ](https://www.namesilo.com/account_domains.php ), click the button with tooltip `Manage dns for the domain` , add add a `A` record with the hostname name `rustdesk` and the IP address of your server.
2024-04-07 12:52:28 +02:00
![](/docs/en/self-host/rustdesk-server-pro/faq/images/namesilo-dns-button.png)
![](/docs/en/self-host/rustdesk-server-pro/faq/images/namesilo-add-a-record.png)
![](/docs/en/self-host/rustdesk-server-pro/faq/images/namesilo-dns-table.png)
2024-06-27 06:08:44 +02:00
* It takes some time for DNS to take effect, https://www.whatsmydns.net and check whether the domain name has been resolved to your server's IP address. Step 6 depends on the correct resolve result. In the following steps, replace `<YOUR_DOMAIN>` with your subdomain, e.g. `rustdesk.example.com` .
2024-04-07 12:52:28 +02:00
2024-05-21 22:05:22 +02:00
#### 2. Install Nginx
2024-04-07 12:52:28 +02:00
* Debian/Ubuntu: `sudo apt-get install nginx`
* Fedora/CentOS: `sudo dnf install nginx` or `sudo yum install nginx`
* Arch: `sudo pacman -S install nginx`
* openSUSE: `sudo zypper install nginx`
* Gentoo: `sudo emerge -av nginx`
2024-04-07 16:49:40 +02:00
* Appine: `sudo apk add --no-cache nginx`
2024-04-07 12:52:28 +02:00
Run `nginx -h` to check whether it has been installed successfully.
2024-04-07 16:25:16 +02:00
#### 3. Install Certbot
2024-04-08 07:54:46 +02:00
* Method 1: If snap is installed, run `sudo snap install certbot --classic`
2024-05-21 22:05:22 +02:00
* Method 2: Using `python3-certbot-nginx` instead. e.g. `sudo apt-get install python3-certbot-nginx` for ubuntu
* Method 3: If the above two methods failed, try install `certbot-nginx` , e.g. `sudo yum install certbot-nginx` for centos 7
2024-04-07 12:52:28 +02:00
2024-06-05 06:56:46 +02:00
Run `certbot -h` to check whether it has been installed successfully.
2024-04-07 12:52:28 +02:00
2024-05-21 22:05:22 +02:00
#### 4. Config Nginx
2024-04-07 12:52:28 +02:00
There are two ways:
* If directory `/etc/nginx/sites-available` and `/etc/nginx/sites-enabled` exists, replace `<YOUR_DOMAIN>` of the following command with your domain name and run it.
2024-05-21 22:05:22 +02:00
```sh
2024-04-07 12:52:28 +02:00
cat > /etc/nginx/sites-available/rustdesk.conf < < EOF
server {
server_name < YOUR_DOMAIN > ;
location / {
proxy_set_header X-Real-IP \$remote_addr;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:21114/;
}
}
EOF
```
Then run `sudo ln -s /etc/nginx/sites-available/rustdesk.conf /etc/nginx/sites-enabled/rustdesk.conf` .
2024-04-07 16:49:40 +02:00
Run `cat /etc/nginx/sites-available/rustdesk.conf` to make sure its content is correct.
2024-04-07 12:52:28 +02:00
* If directory `/etc/nginx/sites-available` and `/etc/nginx/sites-enabled` don't exist and directory `/etc/nginx/conf.d` exists, replace `<YOUR_DOMAIN>` of the following command with your domain name and run it.
2024-05-21 22:05:22 +02:00
```sh
2024-04-07 12:52:28 +02:00
cat > /etc/nginx/conf.d/rustdesk.conf < < EOF
server {
server_name < YOUR_DOMAIN > ;
location / {
proxy_set_header X-Real-IP \$remote_addr;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:21114/;
}
}
EOF
```
2024-04-07 16:49:40 +02:00
Run `cat /etc/nginx/conf.d/rustdesk.conf` to make sure its content is correct.
2024-04-07 12:52:28 +02:00
2024-04-07 16:25:16 +02:00
#### 5. Enable firewall rules for the domain
2024-04-07 12:52:28 +02:00
Run the following commands:
2024-04-08 09:59:40 +02:00
2024-05-21 22:05:22 +02:00
```sh
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw --force enable
sudo ufw --force reload
```
2024-04-07 12:52:28 +02:00
2024-04-07 16:25:16 +02:00
#### 6. Generate SSL certificate
2024-04-07 12:52:28 +02:00
Replace `<YOUR_DOMAIN>` with your domain name, then run
2024-05-21 22:05:22 +02:00
`sudo certbot --nginx --cert-name <YOUR_DOMAIN> --key-type ecdsa --renew-by-default --no-eff-email --agree-tos --server https://acme-v02.api.letsencrypt.org/directory -d <YOUR_DOMAIN>` .
2024-04-07 12:52:28 +02:00
If it prompts `Enter email address (used for urgent renewal and security notices)` , enter your email address.
Finally, the content of `rustdesk.conf` should be like this:
```
server {
2024-05-21 22:05:22 +02:00
server_name < YOUR_DOMAIN > ;
2024-04-07 12:52:28 +02:00
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:21114/;
}
listen 443 ssl; # managed by Certbot
2024-05-21 22:05:22 +02:00
ssl_certificate /etc/letsencrypt/live/< YOUR_DOMAIN > /fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/< YOUR_DOMAIN > /privkey.pem; # managed by Certbot
2024-04-07 12:52:28 +02:00
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
2024-05-21 22:05:22 +02:00
if ($host = < YOUR_DOMAIN > ) {
2024-04-07 12:52:28 +02:00
return 301 https://$host$request_uri;
} # managed by Certbot
2024-05-21 22:05:22 +02:00
server_name < YOUR_DOMAIN > ;
2024-04-07 12:52:28 +02:00
listen 80;
return 404; # managed by Certbot
}
```
Here are some common errors:
* The console prints `Successfully deployed certificate for <YOUR_DOMAIN> to /etc/nginx/.../default` rather than `Successfully deployed certificate for <YOUR_DOMAIN> to /etc/nginx/.../rustdesk.conf` .
2024-05-21 22:05:22 +02:00
The reason may be Certbot doesn't find the `rustdesk.conf` file, you can try one of the following solutions:
- Check the result of the step 5, run `sudo service nginx restart` .
- Copy the server configs `server{...}` which contain `<YOUR_DOMAIN>` to `rustdesk.conf` , and change `location{...}` to the content below.
```sh
2024-04-07 12:52:28 +02:00
location / {
proxy_set_header X-Real-IP \$remote_addr;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:21114/;
}
2024-05-21 22:05:22 +02:00
```
2024-04-07 12:52:28 +02:00
* `too many certificates (5) already issued for this exact set of domains in the last 168 hours`
2024-05-21 22:05:22 +02:00
Solution: Add another domain name to DNS and change `<YOUR_DOMAIN>` to it, e.g. `rustdesk2.example.com` . Then repeat step 1, 4, 6.
2024-04-07 12:52:28 +02:00
2024-04-08 07:54:46 +02:00
* `Error getting validation data`
Solution: it may be caused by firewall, please refer to https://rustdesk.com/docs/en/self-host/rustdesk-server-pro/faq/#firewall
2024-05-21 22:05:22 +02:00
Notice: Run `sudo service nginx restart` if you change the `rustdesk.conf` manually.
2024-04-07 12:52:28 +02:00
2024-04-07 16:43:33 +02:00
#### 7. Login to the web page
* Open https://< YOUR_DOMAIN > in the browser, log in using the default user name "admin" and password "test1234", then change the password to your own.
2024-04-08 07:54:46 +02:00
2024-05-21 22:05:22 +02:00
### SELinux
2024-04-08 07:54:46 +02:00
2024-05-21 22:05:22 +02:00
If `Waiting for RustDesk Relay service to become active...` appears when install, it may be caused by SELinux. You can try the following commands:
2024-04-08 07:54:46 +02:00
2024-05-21 22:05:22 +02:00
```sh
sudo semanage fcontext -a -t NetworkManager_dispatcher_exec_t 'hbbs'
sudo semanage fcontext -a -t NetworkManager_dispatcher_exec_t 'hbbr'
sudo restorecon -v '/usr/bin/hbbs'
sudo restorecon -v '/usr/bin/hbbr'
```
2024-05-12 13:07:00 +02:00
2024-05-21 22:05:22 +02:00
### Firewall
2024-05-12 13:07:00 +02:00
2024-05-21 22:05:22 +02:00
#### Firewall of cloud
If you run on AWS/Azure/Google/DigitalOcean cloud, please open UDP (21116) and TCP (21114-21119) inbound port on cloud vendor's dashboard.
2024-05-12 13:07:00 +02:00
2024-05-21 22:05:22 +02:00
- [AWS] https://docs.aws.amazon.com/network-firewall/latest/developerguide/getting-started.html
- [Azure] https://learn.microsoft.com/en-us/azure/virtual-network/network-security-groups-overview
- [Google] https://cloud.google.com/firewall/docs/firewalls
- [DigitalOcean] https://docs.digitalocean.com/products/networking/firewalls/
2024-05-12 13:07:00 +02:00
2024-05-21 22:05:22 +02:00
#### Firewall of on-premise server
RustDesk set firewall with `ufw` . It may not work on some distros like CentOS 9, you can try with `firewall-cmd` :
2024-04-08 07:54:46 +02:00
2024-05-21 22:05:22 +02:00
```sh
sudo firewall-cmd --permanent --add-port=21115/tcp
sudo firewall-cmd --permanent --add-port=21116/tcp
sudo firewall-cmd --permanent --add-port=21117/tcp
sudo firewall-cmd --permanent --add-port=21118/tcp
sudo firewall-cmd --permanent --add-port=21119/tcp
sudo firewall-cmd --permanent --add-port=21116/udp
```
2024-04-08 07:54:46 +02:00
If you use IP:
2024-05-21 22:05:22 +02:00
```sh
sudo firewall-cmd --permanent --add-port=21114/tcp
```
2024-04-08 07:54:46 +02:00
If you use DNS/Domain:
2024-05-21 22:05:22 +02:00
```sh
sudo firewall-cmd --permanent --add-port=80/tcp
sudo firewall-cmd --permanent --add-port=443/tcp
```
2024-04-08 07:54:46 +02:00
2024-05-12 13:07:00 +02:00
After above, run `sudo firewall-cmd --reload` to reload firewall.
2024-05-31 16:46:07 +02:00
#### After changing the admin password in the web console I cannot log in. Is there a simple way to reset the password?
1. Ensure you have rustdesk-utils installed (if not you can get it [here ](https://github.com/rustdesk/rustdesk-server-pro ), also you need to execute the command from the folder where the database is, ie /var/lib/rustdesk-server).
2. The command is `rustdesk-utils set_password username password` if it works it will say *Done*
You also have the following other commands `genkeypair, validatekeypair [public key] [secret key] , doctor [rustdesk-server], reset_email_verification and reset_2fa_verification` which can be used with rustdesk-utils.