![wsl xming wsl xming](https://balintreczey.hu/blog/wp-content/uploads/2019/12/wsl-x-pulseaudio-detection.png)
This opens up the port to the whole internet, which is a security risk.
Wsl xming windows#
Then click next through windows (allowing the connection and applying to all profiles) until the last screen, and then give it a reasonable name like "WSL2 X Access" and then Finish. Under Rule Type select port and then click next. We're going to open up Port 6000 for the X Server to communicate on. Right click on "Inbound Rules" and select the option "Add Rule." You may be asked at an Administrator prompt to allow this application to make changes to the system allow it. Press the Windows Start Button and select "Firewall & Network Protection" (typing until it comes up). This is straightforward but requires a few steps. We'll enable this traffic to pass through the firewall, as described in cascadium. This means that when we're trying to forward X from WSL2 to an X Server running in Windows it has to pass through the firewall.
![wsl xming wsl xming](http://mymediasystem.net/wp-content/uploads/2017/06/X_meets_Windows-233x300.png)
WSL2 runs in a Virtual Machine, so network traffic looks like it's coming from another machine (as opposed to WSL1 where network traffic was local).