Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5372

Raspberry Pi OS • Re: Xwayland and listen tcp

$
0
0
I've been reading up on socat. Now here's my train of thought:

On the X11 machine (where I switch from Wayland to X11) , I see the expected X11 listening port:
pi@raspi5 ~ $ ss -lnp | grep 6000
tcp LISTEN 0 4096 0.0.0.0:6000 0.0.0.0:*
tcp LISTEN 0 4096 [::]:6000 [::]:*
So on the (X)wayland machine, socat will let me create this port, and forward it to a wayfire socket:
pi@raspi4 ~ $ ss -ln | grep X0
u_str LISTEN 0 0 @/tmp/.X11-unix/X0 8559 * 0
u_str LISTEN 0 0 /tmp/.X11-unix/X0 8560 * 0
I tried:

Code:

sudo socat -dd TCP4-LISTEN:6000 UNIX-CONNECT:/tmp/.X11-unix/X0
socat is happy with this command:
pi@raspi4 ~ $ sudo socat -4 -dd TCP4-LISTEN:6000 UNIX-CONNECT:/tmp/.X11-unix/X0
2024/07/10 13:52:41 socat[14052] N listening on AF=2 0.0.0.0:6000
but the error message from the clients stays the same, be it from linux or from VMS X11 -- cannot open display

Statistics: Posted by wboerhout — Wed Jul 10, 2024 12:01 pm



Viewing all articles
Browse latest Browse all 5372

Trending Articles