Skip to content

Instantly share code, notes, and snippets.

@nij4t
Created August 17, 2021 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nij4t/eb6062812bdf0acf13dbb7fea2c06fa1 to your computer and use it in GitHub Desktop.
Save nij4t/eb6062812bdf0acf13dbb7fea2c06fa1 to your computer and use it in GitHub Desktop.
Fix WSL2 NAT
Restart-Service LxssManager
Restart-Service -Force -Name hns
Restart-NetAdapter -Name "vEthernet (WSL)"
net stop winnat
net start winnat
Restart-Service -Force -Name hns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment