Will WSL automatically recognize a USB Wi-Fi adapter and will I be able to use it. If not how can I direct it to WSL?

I want to use an external USB wifi adapter because you can't use the same adapter as the host for wireless auditing in Kali using programmes like Wifite.

2 Answers 2


Okay so, I edited the kernel itself to allow you to actually be able to use WiFi adapters as well as loadable modules, etc in WSL2

If anyone's interested here you go https://github.com/EDLLT/WSL2-Linux-Kernel

  • 1
    While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
    – Archemar
    Commented Apr 29, 2022 at 12:24

Yes, it is possible to use a USB Wi-Fi adapter but you will have some setup to do.

  1. Open Hyper-V Manager as Administrator.
  2. Go to Virtual Switch Manager.
  3. Select WSL.
  4. Change the connection type to External network.
  5. Choose your Wi-Fi adapter.
  6. If you want, untick the box that says Allow management operating system to share this network adapter.
  7. Press OK to save the changes and exit Hyper-V Manager.
  8. Open WSL.
  9. Then run these 2 commands.
sudo ip addr flush dev eth0 
sudo dhclient eth0
  1. Check if the internet connection is working by pinging google.com
  2. If it doesn't try reopening WSL.
  3. If it still doesn't work, change the nameserver in /etc/resolve.conf to a different DNS like Google ( or Cloudflare (

Source - Can we connect USB WiFi adapter to WSL2 for WiFi Hacking? || Networking in WSL2

  • Any idea how to safely revert it back?
    – William
    Commented Feb 22, 2023 at 19:54
  • yes, but to use tools like wifite that require the adapter to be in monitor mode, wsl picking it up as an ethernet adapter is not going to help Commented Jun 14 at 18:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .