- (Optional) Run this to disable "Microsoft Wi-Fi Direct Virtual Adapter" if you planned to passthrough a USB Wifi adapter.
netsh wlan stop hostednetwork
netsh wlan set hostednetwork mode=disallow
-
Get VendorID and ProductID of the USB device, both are 4 hexadecimal digits. There are many ways to do this, the easy enough way for a noob is to plug it in, open
Device Manager, right-click the device and openProperties, chooseDetailstab, on thePropertydrop-down, selectHardware Ids. The value should be something likeUSB\VID_ABCD&PID_1234, that should make the VendorID beABCDand ProductID be1234. -
Install usbipd-win: https://github.com/dorssel/usbipd-win/
-
Run this command to force the USB device to be shared (Remember to put the VendorID and ProductID in the command). The
-fswitch will force the USB device to disconnect itself from the host, even when the client is not connected yet.
usbipd bind -i $VID:$PID -f
- Follow this to setup the usbip client on Debian, should be the same for other Linux distro: https://www.unifix.org/2023/11/28/usbip-on-debian-12-usb-device-sharing-over-ip-network/