DEV Community

Discussion on: Using Graphical User Interfaces like Cypress' in WSL2

Collapse
 
scalopus profile image
Warun Kietduriyakul • Edited

Hi Nick, Thank you for the article, I'm so grad that it easy to follow and successfully bring it up.

I got the same issue about 'cannot open display'. Finally, I got solution, I just need to change firewall policy for the VcXsrv to able to working in Public even I am in the home (Private network). Then after that, everything work well.
Open the Control Panel as following
Control Panel\System and Security\Windows Defender Firewall\Allowed apps
and Enable VcXsrv in Public.

I also follow this script but it seem not related to this issue.
github.com/microsoft/WSL/issues/47...

Just leave the detail in case someone may experience the same.