-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WSL2 can't open display #6181
Comments
Check which address your VcXSrv is listening, by hover the tray icon of VcXSrv, it could be |
It' s listening at "hostname:0.0", and with the ip adresse shown in |
Maybe that's not enough. Close everything and go to Windows Firewall with Advanced Security -> Inbound rules and delete every rule you see for Vcxsvr.exe. After that the first time you launch Vcxsvr make sure you Allow access for Private AND Public networks. |
It works! Thanks a lot. |
@peter-jerry-ye works like a charm. thanks. |
It works! |
Or double click the VcXsrv rules and change action to "Allow the connection" . |
Thank you, thank you @jha-prateek and @hongbo-zhu-cn. I finally got there with a combination of these answers. Enabling inbound PUBLIC networks was the key. |
|
Hey guys, I found another solution if you are still not getting results. |
Environment
Steps to reproduce
ip route
to get ip of host os, which isdefault via 172.30.96.1 dev eth0
DISPLAY=172.30.96.1:0.0 xeyes
to test xserverhttps://gist.github.com/peter-jerry-ye/725d6768fde7a5c37294ce9faf70bbb4
WSL logs:
Expected behavior
Xeyes being started
Actual behavior
Error: Can't open display: 172.30.96.1:0.0
after a few secondsThe text was updated successfully, but these errors were encountered: