惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Cloudflare Blog
有赞技术团队
有赞技术团队
H
Help Net Security
V
Visual Studio Blog
F
Fortinet All Blogs
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 司徒正美
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
腾讯CDC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Stack Overflow Blog
Stack Overflow Blog
I
InfoQ
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
L
LangChain Blog
N
Netflix TechBlog - Medium
罗磊的独立博客
The GitHub Blog
The GitHub Blog
云风的 BLOG
云风的 BLOG
Hugging Face - Blog
Hugging Face - Blog
A
About on SuperTechFans
aimingoo的专栏
aimingoo的专栏
Recent Announcements
Recent Announcements

LY 的博客

AX1800 路由器折腾记录 ZJUCTF 2025 writeup 将 iPad 与 Apple Pencil 作为数位屏使用 Linux 修改 WiFi 监管数据 提取上交 jAccount 动态口令(TOTP) 机械革命无界 15X Pro 暴风雪使用 Arch Linux 基于 RawDisk,将双系统挂载为虚拟机 使用硬件密钥解锁 KeePass 数据库 Linux 自制鼠标指针
Windows 使用 USB/IP 通过网络共享 USB 设备
LY · 2024-06-16 · via LY 的博客

以下内容中,1-4改为需要共享的Bus ID192.168.66.66改为服务端的IP地址。

服务端

这台设备上应当插有你要共享的 USB 设备。

下载安装usbipd-win

重启电脑,或直接使用sc start usbipd启动服务端。

  • 列出所有设备:usbipd list
  • 绑定设备,以供外部使用:usbipd bind -b 1-4
  • 取消绑定设备:usbipd unbind -b 1-4

客户端

首先,下载usbip-win(本项目已不维护)。

接着按照说明安装证书、启用测试签名(注意,此步有极大安全风险!):

Import-PfxCertificate -FilePath .\usbip_test.pfx -CertStoreLocation Cert:\LocalMachine\AuthRoot -Password (ConvertTo-SecureString "usbip" -AsPlainText -Force)
Import-PfxCertificate -FilePath .\usbip_test.pfx -CertStoreLocation Cert:\LocalMachine\TrustedPublisher -Password (ConvertTo-SecureString "usbip" -AsPlainText -Force)
bcdedit /set testsigning on

接着安装驱动。这里我只能用vhci(wdm)的,也就是usbip.exe install -w。你也可以尝试vhci(ude),即使用usbip.exe install -u

重启。

此时桌面会显示水印,以警告不安全的测试模式。可以使用Universal Watermark Disabler移除。

  • 连接设备:usbip attach -r 192.168.66.66 -b 1-4
  • 查看已连接设备:usbip port
  • 断开已连接设备:usbip detach -p 0(此处的0改为设备端口号;端口号在连接时会显示,也可以使用usbip port查看)