rustdesk / rustdesk/rustdesk-server
Rustdesk servers run, but fail to listen on any active address, even on localhost
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
In my setup, rustdesk fails to listen on any interface, even on localhost
[root@rustdesk ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: eth0@if317: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 02:00:00:00:01:40 brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 192.168.1.140/24 metric 1024 brd 192.168.1.255 scope global dynamic eth0
valid_lft 5856sec preferred_lft 5856sec
[root@rustdesk ~]# netstat -panoe | grep 2111
tcp6 0 0 :::21118 :::* LISTEN 0 235689190 518/hbbs off (0.00/0/0)
tcp6 0 0 :::21119 :::* LISTEN 0 235685762 746/hbbr off (0.00/0/0)
tcp6 0 0 :::21116 :::* LISTEN 0 235689188 518/hbbs off (0.00/0/0)
tcp6 0 0 :::21117 :::* LISTEN 0 235685761 746/hbbr off (0.00/0/0)
tcp6 0 0 :::21115 :::* LISTEN 0 235689189 518/hbbs off (0.00/0/0)
udp6 0 0 :::21116 :::* 0 235689187 518/hbbs off (0.00/0/0)
[root@rustdesk ~]# systemctl restart rustdesksignal
[root@rustdesk ~]# systemctl restart rustdeskrelay
[root@rustdesk ~]# netstat -panoe | grep 2111
tcp6 0 0 :::21118 :::* LISTEN 0 235874030 974/hbbs off (0.00/0/0)
tcp6 0 0 :::21119 :::* LISTEN 0 235885435 988/hbbr off (0.00/0/0)
tcp6 0 0 :::21116 :::* LISTEN 0 235874028 974/hbbs off (0.00/0/0)
tcp6 0 0 :::21117 :::* LISTEN 0 235885434 988/hbbr off (0.00/0/0)
tcp6 0 0 :::21115 :::* LISTEN 0 235874029 974/hbbs off (0.00/0/0)
udp6 0 0 :::21116 :::* 0 235874027 974/hbbs off (0.00/0/0)
[root@rustdesk ~]#
Describe the environment
- Host machine: Fedora 42 LXC container running on Proxmox VE, with IPv6 disabled using sysctl.
- Install environment: install script
- Or if you're running the plain binary: install script, untouched
- In any case, you have to specify the version in use
[root@rustdesk ~]# /opt/rustdesk/hbbr -V
hbbr 1.1.14
[root@rustdesk ~]# /opt/rustdesk/hbbs -V
hbbs 1.1.14
[root@rustdesk ~]#
How to Reproduce the bug
- Run the install script according to the documentation.
- Disable ipv6 on all interfaces using sysctl
- Restart rustdesk servers
Expected behavior
Rustdesk servers should listen on active interfaces, ie: localhost and eth0, using IPv4, not the IPv6 stack that is not in use.
Optimal behavior
Allow users to configure on which interfaces and addresses the servers listen.
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
Start by reproducing the behavior with the install script, hbbs and hbbr 1.1.14 binaries, and IPv6 disabled through sysctl. Inspect the server listener entry points and verify the result with netstat; done means hbbs and hbbr listen on the active IPv4 addresses, including localhost and eth0.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100