rustdesk / rustdesk/rustdesk-server
Webclient do not follow `-r` options to find `wss://` location
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 10.4k
- Forks
- 2.6k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
I'm hosting rustdesk-server on Synology, and add reverse-proxy 18302/18303 to 21118/21119 port. and then I can connect to my synology server with https://domain:18302 on https://rustdesk.com/web/
But the web client complains that it can not connect to relay server:
Failed to connect to relay server, wss://192.168.83.42:21119
but I'm already tell hbbs to use 192.168.83.42:18203 for relay server:
services:
hbbs:
container_name: hbbs
image: rustdesk/rustdesk-server:latest # Please change this to rustdesk/rustdesk-server-pro:latest if you want to install Pro.
command: hbbs -R 192.168.83.42:18302 -r 192.168.83.42:18303
...
So, How could I tell hbbs that the real wss:// relay server is on 18303?
Describe the environment
- Install environment: Synology Container Station & docker compose
- If available, the
docker-compose.yamlfile:
services:
hbbs:
container_name: hbbs
image: rustdesk/rustdesk-server:latest # Please change this to rustdesk/rustdesk-server-pro:latest if you want to install Pro.
command: hbbs -R 192.168.83.42:18302 -r 192.168.83.42:18303
environment:
- RUST_LOG=debug
volumes:
- ./data:/root
- ./config:/.config
network_mode: host
depends_on:
- hbbr
restart: always
hbbr:
container_name: hbbr
image: rustdesk/rustdesk-server:latest # Please change this to rustdesk/rustdesk-server-pro:latest if you want to install Pro.
command: hbbr
volumes:
- ./data:/root
- ./config:/.config
network_mode: host
restart: always
# Because using docker host mode
# Just in case you forgot the ports:
# 21114 TCP for web console, only available in Pro version
# 21115 TCP for NAT type test
# 21116 TCP TCP hole punching
# 21116 UDP heartbeat/ID server
# 21117 TCP relay
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source files or tests are named. Start by tracing hbbs handling of the -R and -r options and how the web client derives its wss:// relay address; verify the configured relay port 18303 is reflected in the generated connection endpoint.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, docker-compose, rust
- Domain
- backend, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100