shayne / go-wsl2-host

Automatically update your Windows hosts file with the WSL2 VM IP address
1.65k stars 142 forks source link

Not an issue, just a use case that I still need this for :) #28

Open snibbo71 opened 4 years ago

snibbo71 commented 4 years ago

Can't see how to actually PM you guys so my apologies for raising an issue.

I've setup Ubuntu Desktop, with LightDM running XDMCP so that I can login and out of the Desktop. I'd been playing with VNC to use the GUI and that worked nicely through 'localhost' on W10.2004. I've found X to run much smoother and quicker using VcXsrv versus VNC. However, XDMCP does not work using localhost.

I think it's a WSL2 issue - in that everything I can see suggests localhost works for TCP connections. There's no mentions of localhost working for UDP connections and XDMCP uses port 177/UDP.

Your addition of the hostname.wsl to system32/drivers/etc/hosts fixes this for me as I can use ubuntu2004.wsl in my XLaunch file.

Thank you for this solution, it works a treat. The only issue is that I had to convert my @outlook.com Microsoft Account into a local account to get it to run as a service. Yours isn't the only program I've had this issue with though and so I'm not fussed :)

Thank you!