nbdd0121 / wsld

WSL Daemon - Stable X11 connection and time synchronisation for WSL2
Apache License 2.0
299 stars 26 forks source link

wsldhost: no connection could be made #34

Open rsenden opened 10 months ago

rsenden commented 10 months ago

Trying to make this work with the X Server provided by wslg; if possible I'd like to avoid a 3rd-party X Server.

To be able to successfully start wsld, I needed to apply the systemd unit file as described here: https://github.com/nbdd0121/wsld/issues/21#issuecomment-1345530909.

However, all X11 applications fail with Error: Can't open display: :0. Manually starting wsldhost.exe on the Windows side shows this error when wsld tries to connect: Error: No connection could be made because the target machine actively refused it. (os error 10061).

From what I understand, wslhost.exe by default tries to connect to 127.0.01:6000, but netstat doesn't show anything listening on that port. Do I need to use a different port for the WSLg built-in X Server?