Some WSL2 command and apps

Some of Windows Subsistem Linux V 2 useful command and apps

Restart WL services (all distro inside), At an administrative PowerShell

Restart-Service LxssManager

Connecting to WSL2 server via local network

WSL2 exposes ports on the local interface (which is why in Windows you can access localhost:8080 when your 8080 service is running in WSL2), but they listen on (which is why you can’t access yourhostname:8080 on other computers your LAN).

There’s a tool to fix this called WSLHostPatcher, which you can find here (download via the Releases section):

WSLHostPatcher changes the behaviour to listen on all IPs, exposing any WSL2 services to all computers on your network.

  • Download the latest release from (I tested v0.1.0)
  • Unzip the file
  • Run the WSLHostPatcher.exe
  • (Re)start your service in WSL2
  • The service should now be accessible via other computers on your network.



Leave a Comment

Your email address will not be published. Required fields are marked *