

The IP is entered under "Range" and "Remote IP address".īy default, the WSL2 is assigned an IP address that comes from this range. The values can be made via a right click on the corresponding entry and properties.
Phpstorm wsl2 windows 10#
When I start ubuntu it doesn’t detect the Xserver running on the Windows 10 side. I installed “VcXsrv” on Windows side and for what I understand it listen to the Ethernet adapter vEthernet (WSL) Starting a graphical application should work then, enjoy! $ export DISPLAY=$(grep -m 1 nameserver /etc/nf | awk ''):0.0
Phpstorm wsl2 how to#
Specifying the server numer to be ‘0’ on the first screen and also allow public accessĭisable Windows Defender Firewall for Guest or public Network (a better way would be to add firewall rules to allow only what is needed but I didn’t figure out how to do that yet, help welcome if anyone knows?) VcXsrv, download from and install/start it. When I run PHPUnit test it looks like it connects to my container. It seems to recognize PHP inside my 'php-fpm' container (it pulls the PHP info). Docker Container and CLI Interpreters are set up on PhpStorm. All my project files are local and inside WSL Ubuntu. Once started click on the systray icon and pick “Allow Public Access” My current setup is: PhpStorm, Docker WSL, Ubuntu (WSL). X410 is available in the windows store with a free trial.
Phpstorm wsl2 install#
Install an Xserver, I tried those options which work

The problem is known upstream and has to do with the fact that WSL2 has its own network configuration which means using localhost/127.0.0.1 to contact the xserver isn’t working. I started following the wiki instructions but things seem currently a bit more complicated that they were on WSL and the improvement did in this wslu upload don’t seem enough. I’ve been trying to get graphical applications to work on WSL2.
