Bug 352434 - KRDC cannot handle IPv6 addresses via RDP
Summary: KRDC cannot handle IPv6 addresses via RDP
Status: CONFIRMED
Alias: None
Product: krdc
Classification: Applications
Component: RDP (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Urs Wolfer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-08 12:37 UTC by Lubos Dolezel
Modified: 2024-06-21 11:00 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lubos Dolezel 2015-09-08 12:37:55 UTC
When I try using "rdesktop" directly, then the following works:

$ rdesktop fd00:1::30a2:6a30:2e19:d185

This works as well:

$ rdesktop [fd00:1::30a2:6a30:2e19:d185]

However, when I try connecting to [fd00:1::30a2:6a30:2e19:d185] in KRDC, it first asks for connection parameters, then for username and password, but after all of this it shows an error message: "Name or service not known".
Comment 1 Urs Wolfer 2015-09-23 17:00:43 UTC
What version of KRDC are you using? Recent KRDC versions are using FreeRDP (xfreerdp) for RDP support. Please try if you can connect with xfreerdp using IPv6.
Comment 2 Paolo Pedroni 2015-09-24 10:14:22 UTC
I can confirm this with krdc 15.08.1 and xfreerdp.

If I use krdc to connect to one of my hosts, which has both an ipv6 and an ipv4 address, it always chooses the ipv4 one.
If I force the ipv6 address (in brackets) I get: "Connection attempt to host failed. Security negotiation or connection failure."
Without brackets I get (of course): "The entered address does not have the required form.
 Syntax: [username@]host[:port]"
If I use xfreerdp from the command line I manage to connect without problems.
Comment 3 Paolo Pedroni 2015-09-24 10:16:43 UTC
I forgot to mention: my freerdp version is 1.2.1_pre20150326 (I'm on gentoo).
Comment 4 Lubos Dolezel 2015-09-24 10:48:13 UTC
This works for me:

xfreerdp /v:[fd00:1::30a2:6a30:2e19:d185]

but KRDC does not. I'm also running 1.2.1_pre20150326 (Gentoo).
Comment 5 Justin Zobel 2022-10-16 07:52:10 UTC
Thank you for reporting this bug in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
Comment 6 Lubos Dolezel 2022-10-17 16:07:07 UTC
Still broken. I can use xfreerdp /v:[2001:1ae9:25f:300:xxx], but when I use e.g. lubos@[2001:1ae9:25f:300:xxx] in KRDC, I get a blue window for a while (after the password prompt) and then it just disappears.

Using an IPv6-only hostname instead of the IPv6 address works, so the problem is not the IPv6 protocol, but really just the direct use of an IPv6 address.
Comment 7 liyqme 2023-01-05 14:35:46 UTC
By running krdc with `QT_LOGGING_RULES` environment variable, it shows the xfreerdp arguments:

$ QT_LOGGING_RULES="KRDC.debug=true" krdc
(... lines omitted ...)
KRDC: Starting xfreerdp with arguments:  "(... other args ...) /port:3389 /v:2400:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx"
(... lines omitted ...)

So the ipv6 address is not bracketed. Related code seems to be at
https://invent.kde.org/network/krdc/-/blob/d0efc2c3/rdp/rdpview.cpp#L339