rustdesk / rustdesk

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.
https://rustdesk.com
GNU Affero General Public License v3.0
73.16k stars 8.7k forks source link

Client using wrong port to server using IPv6 #3622

Closed tuxmainy closed 1 year ago

tuxmainy commented 1 year ago

Bug Description

Hi, when connecting to my rustdesk server by IPv4 (DNS or IP given, does not matter) everything is fine. But using the same server and client with IPv6 fails: orange LED on the bottom of rustdesk client saying it tries to connect but can't.

Looking with tcpdump I noticed that the rustdesk client (on Ubuntu) was using port 443 instead of port 21116 when using IPv6 while the client uses port 21116 when using IPv4. The rustdesk server is only available on 21116 thus the IPv6 requests are failing.

I am wondering about this to be a "tuxmainy problem" but I cannot imagine what I could have done wrong. The problem is always reproducible by switching between IPv4 and IPv6.

Can someone confirm?

regards Daniel

How to Reproduce

use IPv6 (I have only tried with entering a DNS)

Expected Behavior

should behave like using IPv4

Operating system(s) on local side and remote side

Ubuntu 22.04.2 LTS

RustDesk Version(s) on local side and remote side

1.1.9 -> docker rustdesk/rustdesk-server:latest

Screenshots

grafik

Additional Context

No response

rustdesk commented 1 year ago

1.1.9 does not support ipv6