I have WSL Ubuntu. Yesterday I installed VcXsrv and added one line to ~/.profile: export DISPLAY=$(route.exe print | grep 0.0.0.0 | head -1 | awk '{print $4}'):0.0
. After that if I press Disable Acces Control when launching VcXsrv all works just fine. But if I launch server without Disable Acces Control ubuntu tells me this when I try to launch something like xeyes:
Authorization required, but no authorization protocol specified
Error: Can't open display: <some ip>:0.0
How can I use xserver without Disable Access Control?