Created
August 17, 2021 19:58
-
-
Save nij4t/eb6062812bdf0acf13dbb7fea2c06fa1 to your computer and use it in GitHub Desktop.
Fix WSL2 NAT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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