Xpra: Ticket #2098: Address family not supported by protocol connection error

Currently running trunk r21278 on a Fedora 28 server and trying to connect with another trunk r21278 Fedora 28 machine as a client.

Attempting to connect using xpra attach ssh:user@host or xpra attach tcp:ip:port or xpra attach ssh:host (which works for me because my user is the same on the client and server) fails with the following error:

xpra initialization error:
 connection failed: [Errno 97] Address family not supported by protocol

Rolling my server back to r21275 fixes it, and a quick bisection shows that r21276 is where the issue appears for me.



Thu, 03 Jan 2019 17:39:22 GMT - Antoine Martin: owner changed

That's caused by #2092. Odd, because without r21277 the default behaviour was meant to be unchanged.

Please post the output of (changing the value of HOSTNAME):

python -c "import socket;print(socket.getaddrinfo('HOSTNAME', 10000, 0, socket.SOCK_STREAM))"

Thu, 03 Jan 2019 17:40:49 GMT - Antoine Martin: summary changed


Thu, 03 Jan 2019 17:42:08 GMT - J. Max Mena: owner changed

Requested output:

[max@verschlimmbessern ~] $ python -c "import socket;print(socket.getaddrinfo('vorfuehreffekt', 10000, 0, socket.SOCK_STREAM))"
[(10, 1, 6, '', ('2600:1700:65a0:3470:93af:da92:db2b:6cbd', 10000, 0, 0)), (2, 1, 6, '', ('192.168.1.81', 10000))]

Looks like a valid and correct IPV4 address, and the IPV6 address looks correct, but I'm not familiar enough with them to be sure.


Thu, 03 Jan 2019 17:43:40 GMT - J. Max Mena:

I forgot to post an IPV4 address, but it looks correct as well:

[max@verschlimmbessern ~] $ python -c "import socket;print(socket.getaddrinfo('192.168.1.81', 10000, 0, socket.SOCK_STREAM))"
[(2, 1, 6, '', ('192.168.1.81', 10000))]

Thu, 03 Jan 2019 18:09:06 GMT - Antoine Martin: status changed; resolution set

Fixed in r21279 + r21280 + r21281 (docstring)


Sat, 23 Jan 2021 05:42:09 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2098