Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSL can't see an USB drive after attaching #803

Open
ghost opened this issue Dec 15, 2023 · 11 comments
Open

WSL can't see an USB drive after attaching #803

ghost opened this issue Dec 15, 2023 · 11 comments
Labels
WSL Applies to WSL only

Comments

@ghost
Copy link

ghost commented Dec 15, 2023

image
image
image

@dorssel
Copy link
Owner

dorssel commented Dec 15, 2023

Is there an error after the warning? Did you find the root cause of the warning?

@ghost
Copy link
Author

ghost commented Dec 15, 2023

nope, no errors whatsoever. Just wsl can't see anything either as any other usb device

@dorssel
Copy link
Owner

dorssel commented Dec 15, 2023

@dorssel dorssel added bug Something isn't working WSL Applies to WSL only and removed bug Something isn't working labels Dec 18, 2023
@soul667
Copy link

soul667 commented Feb 17, 2024

Do you solve it?I meet the same problems,and need help.I,m almost dead kepping working for servals hours to solve it.

@ghost
Copy link
Author

ghost commented Feb 17, 2024

Do you solve it?I meet the same problems,and need help.I,m almost dead kepping working for servals hours to solve it.

No, that was a dealbreaker for me so I’ve switched from windows + well to Ubuntu

@soul667
Copy link

soul667 commented Feb 24, 2024

Did you check the relevant logs? I really don't want to install another system

@marbaa
Copy link

marbaa commented Feb 27, 2024

I tried pass through wifi dongle. Not working, same as above, WSL2 doesn't see any new usb device.

> usbipd.exe attach -w -b 7-4
usbipd: info: Using WSL distribution 'Debian' to attach; the device will be available in all WSL 2 distributions.
usbipd: info: Using IP address 172.29.112.1 to reach the host.
usbipd: warning: A third-party firewall may be blocking the connection; ensure TCP port 3240 is allowed.
WSL usbip: error: tcp connect
usbipd: error: Failed to attach device with busid '7-4'.

@ValentinTwin1206
Copy link

ValentinTwin1206 commented Mar 21, 2024

@marbaa does your WSL guest itself faciliates an own firewall with ufw or iptables?
My company applies a Group Policy which prevented local changes to the Windows firewall to be applied correctly..
Now it works out of the box.

@marbaa
Copy link

marbaa commented Mar 21, 2024

No, don't have any firewall in WSL distro. The problem is mentioned here and in following posts. Windows Defender is treating WSL internal network as Public network.

@ninetailedtori
Copy link

ninetailedtori commented Jul 7, 2024

I tried pass through wifi dongle. Not working, same as above, WSL2 doesn't see any new usb device.

> usbipd.exe attach -w -b 7-4
usbipd: info: Using WSL distribution 'Debian' to attach; the device will be available in all WSL 2 distributions.
usbipd: info: Using IP address 172.29.112.1 to reach the host.
usbipd: warning: A third-party firewall may be blocking the connection; ensure TCP port 3240 is allowed.
WSL usbip: error: tcp connect
usbipd: error: Failed to attach device with busid '7-4'.

Same error here, however tried all the attempted solutions in other threads including #657, #794 and even this thread regarding firewall access prevention to WSL2, nothing has worked, even fully disabling firewall for a lil time as a test, with and without my VPN, same results. Testing with usbip attach -r <localip> -b 1-5 gives usbip: error: could not connect to <ip>: System error as well, which seems to make sense.

Any ideas on this problem yet?

@Johnny8923
Copy link

Here's a potential solution which worked for me: #794 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WSL Applies to WSL only
Projects
None yet
Development

No branches or pull requests

6 participants