mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-02 19:26:56 -05:00
Ubuntu can connect to Windows, but Windows can't connect to Ubuntu #1620
Labels
No labels
bug
documentation
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
question
unreproducible
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rustdesk-rustdesk#1620
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dr1ver1 on GitHub (Apr 6, 2023).
Bug Description
I've tried 2 set ups of RustDesk Server on my home network that has the follows machines:
Ubuntu 22.04 running X11
Windows 10 PC
Windows 11 Laptop
I can connect as follows:
I'm unable to connect from Windows to Ubuntu - and this is my main requirement.
I've set up RustDesk Server on Ubuntu, using the docker-compose.yml at https://rustdesk.com/docs/en/self-host/install/
When I try to connect to Ubuntu I get the error: "Failed to connect via relay server... Please try later"
I've also set up RustDesk Server on the Windows 10 machine using the instructions at https://pedja.supurovic.net/setting-up-self-hosted-rustdesk-server-on-windows
When I try to connect to Ubuntu I get the error: "x11 error connection refused"
I was previously using the public RustDesk server to access Ubuntu from Windows.
All machines running RustDesk Desktop 1.1.9
Windows RustDesk Server 1.1.7-4
Ubuntu RustDesk Server using docker image rustdesk/rustdesk-server:latest
On Ubuntu I've run:
On Windows I've created rules in the firewall for those ports.
I've tried the Discord, but none of the suggestions helped.
From Windows Powershell I've run Test-NetConnection to check that the relevant ports are open on the Ubuntu machine.
How to Reproduce
Set up RustDesk Server on Ubuntu 22.04 and try to access Ubuntu from Windows
Expected Behavior
Expect to be able to connect to Ubuntu from Windows
Operating system(s) on local side and remote side
Windows 10, Windows 11 -> Ubuntu 22.04
RustDesk Version(s) on local side and remote side
All machines running RustDesk Desktop 1.1.9; Windows RustDesk Server 1.1.7-4; Ubuntu RustDesk Server using docker image rustdesk/rustdesk-server:latest
Screenshots
N/A
Additional Context
No response
@rustdesk commented on GitHub (Apr 6, 2023):
#763 #440
@dr1ver1 commented on GitHub (May 25, 2023):
To access the RustDesk client on Ubuntu from another machine on the LAN, I needed to add the following to the firewall:
sudo ufw allow from 192.168.1.0/24 proto tcpi.e., by default TCP connections from other clients on the LAN are blocked with a vanilla Ubuntu & UFW set up. The RustDesk client from the requesting machine needs TCP to be allowed, and the ports seem to be "random" - at least they are not 21115-21119, and seem to vary each time. This was evidenced in
/var/log/ufw.logMaybe I missed it, but I haven't this in any of the documentation - note this is for the client not the RustDesk server.
Maybe it is obvious, but I spent some time on discord and no one there picked it up, and I haven't seen it mentioned in any of the issues or discussions here. I suspect there may be some potential users who have the same issue and have given up, especially if they are not familiar with looking at firewall logs.
@xlinx commented on GitHub (Feb 21, 2025):
dont use network_mode: "host"
specific port self
that will not listen on ipv6