> ## Documentation Index
> Fetch the complete documentation index at: https://dragonwingdocs.qualcomm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# USB Forwarding on WSL

> Attach a physical USB device from Windows into the WSL environment using usbipd.

## Overview

On Windows + WSL, USB devices are not automatically visible inside the Linux subsystem. The `usbipd-win` tool bridges this gap by forwarding USB buses from the Windows host into WSL over a loopback IP tunnel.

> [!NOTE]
>
> `usbipd-win` must already be installed. If not, run `winget install usbipd-win` in a Windows Administrator terminal.

## Step-by-step

**1. List available USB devices**

```batch theme={null}
usbipd list
```

Note the `BUSID` for your Qualcomm device.

**2. Bind the device (persistent, one-time)**

```batch theme={null}
usbipd bind --busid=<BUSID>
```

> [!NOTE]
>
> Binding is **persistent across reboots**. If your device exposes multiple USB modes, bind each `BUSID` once.

> [!WARNING]
>
> On some corporate machines, `usbipd bind` or the subsequent attach step may fail due to firewall policies. If you see an explicit firewall error, follow the **Corporate firewall workaround** below.

**3. Attach the device to WSL with auto-reattach**

```batch theme={null}
usbipd attach --wsl --busid=<BUSID> --auto-attach
```

> [!WARNING]
>
> * Keep this PowerShell window **open** — closing it stops the auto-attach loop.
> * You must re-run this command every time you restart WSL.
> * If you change the physical USB port, re-run all usbipd commands from the start.

The following shows the full bind and attach sequence:

![usbipd — bind and attach commands](https://mintcdn.com/qualcomm-prod/hlNuX08-pFFtVn68/archives/2.1/Tools/QVSCE/images/usbipd-commands-attach.gif?s=a0deafa14a90b1c6d3bc2d62871c91d5)

**4. Verify the device inside WSL**

In your WSL terminal:

```bash theme={null}
lsusb
```

You should see your Qualcomm device listed.

## Corporate firewall workaround

> [accordion] WSL mirrored networking — resolve firewall issues
>
> 1. Close all open WSL terminals.
>
> 2. In PowerShell, shut down WSL:
>
> ```batch theme={null}
> wsl --shutdown
> ```
>
> 3. Edit `%UserProfile%\.wslconfig` and add:
>
> ```ini theme={null}
> [wsl2]
> networkingMode=mirrored
> ```
>
> 4. Restart WSL:
>
> ```batch theme={null}
> wsl -d ubuntu-22.04
> ```
>
> 5. Retry the `usbipd bind` and `usbipd attach` steps.

## Detach / unbind when done

```batch Detach theme={null}
usbipd detach --busid=<BUSID>
```

```batch Unbind theme={null}
usbipd unbind --busid=<BUSID>
```
