If it has been configured differently, this must of course be adjusted accordingly.Įdit: the range around "192.168.0.0/16" should also be entered, as this is also used by WSL2.I'm on ubuntu 20, runing the latest stable PHPStorm. 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. For the entry for Public and TCP the action must be set to "Allow", but only for the remote address "172.16.0.0/12".Search for "Windows Defender Firewall with Advanced Security" in Windows Search and search for " VcXsrv windows server" under " Incoming rules".Windows Defender blocks access from WSL to the X11 server by default: Īccess can be allowed via firewall rules: The file can also be placed in the autostart, then the X11 server starts already preconfigured at login. This can look as follows (can be saved as " config.xlaunch" for example): VcXsrv is then started by means of a config file. This can be downloaded here for example: This requires the following steps:įirst of all, the X11 server must be installed. This can be worked around by installing PHPStorm directly into WSL2 and using an X11 server to display the windows in Windows. In PHPStorm the project can then be called via the path \\wsl$\Ubuntu\home\\.\. Quickly it becomes clear that PHPStorm does not reliably recognize changes to the files. As a workaround you can move the projects to the file system of WSL2, for example to /home//./. The project itself can be located under /mnt/ (directly accessible via Windows Explorer), but then the performance is quite bad. PHPStorm can of course also be installed normally, as you know it from Windows programs:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |