Skip to content

Instantly share code, notes, and snippets.

@Kavignon
Created December 1, 2021 22:02
Show Gist options
  • Save Kavignon/18f897f622112b38261406846b3113a6 to your computer and use it in GitHub Desktop.
Save Kavignon/18f897f622112b38261406846b3113a6 to your computer and use it in GitHub Desktop.
Resolving a slow Wi-Fi connection speed over Linux WSL2

This could be a problem cause by your Windows OS being a bottleneck and limit your speed. After some talks and discussion with a colleague, this is the solution that worked for my case!

From Windows

  • Go to your Start Menu.
  • Go to 'View Network Connections'.
  • Right-click on your Wi-Fi adapter.
  • Select the 'Properties' menu option.
  • Find the 'Internet Protocol Version 4' and select the 'Properties' menu option. (keep the IPv4 option checked)
  • Click on the 'Advanced' button.
  • Uncheck 'Automatic Metric' and enter 1 in the 'Interface metric' text box.
  • Close everything.
  • Restart your development machine
  • Go to your Hyper-V Manager (or any other application you're using for virtual machine management) application and shut down your local VM.
  • Start it over again.
  • SSH into your VM from your favourite CLI.

From Linux

  • Execute 'sudo apt-get update'
  • Execute 'sudo apt speedtest-cli install'
  • Execute 'speedtest-cli'
@ejolly5678
Copy link

The command should be 'sudo apt install speedtest-cli' instead of 'sudo apt speedtest-cli install'

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