Skip to content

Instantly share code, notes, and snippets.

@eschen42
Forked from kiransubash/wsl2-reset.md
Created October 21, 2022 07:58
Show Gist options
  • Save eschen42/8fb9a2fc229f8550444c0abd2575086f to your computer and use it in GitHub Desktop.
Save eschen42/8fb9a2fc229f8550444c0abd2575086f to your computer and use it in GitHub Desktop.
Reset WSL2 networking on windows 10

Open Powershell or Cmd as Administrator and run the following commands

wsl --shutdown
netsh winsock reset
netsh int ip reset all
netsh winhttp reset proxy
ipconfig /flushdns

Run the command from windows run prompt

network reset

Reboot windows

Restart windows

@eschen42
Copy link
Author

I ran the powershell commands from the windows command line successfully.

I could not run network reset from the windows command line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment