← How-Tos
raspberry-pi 1 days ago ◑ 4 views ◯ 4 min read

Sharing USB Lab and Shop Equipment Over the Network from a Raspberry Pi with VirtualHere

virtualhereusb over ipraspberry pinetworkshared equipmentremote access

A shop or home lab tends to accumulate USB-only equipment that only one computer at a time can use — a USB oscilloscope, a dongle-locked piece of CAM software, a 3D scanner, a label printer, or even a Flipper Zero plugged in for CLI access. VirtualHere turns a Raspberry Pi into a USB-over-IP hub: it shares USB devices plugged into the Pi across the network so any computer running the client can "mount" that device as if it were plugged in locally, no physical cable required and no need to walk the device over to whichever machine needs it this time.

What VirtualHere Actually Does

Unlike a generic network file share, VirtualHere works at the USB protocol level — the client computer's operating system sees the remote device exactly as it would a locally-attached USB device, drivers and all, because the actual USB traffic is being tunneled over the network rather than translated into some higher-level protocol. This matters for equipment with device-specific drivers (oscilloscopes, protocol analyzers, dongle-protected software keys) that wouldn't work through a generic "shared folder" style of remote access.

Setting Up the Server on a Raspberry Pi

  1. Download the ARM server binary directly from VirtualHere's site (there's a build for Raspberry Pi's ARM architecture; grab the one matching your OS's architecture, 32- or 64-bit).
  2. Make it executable and do a test run: chmod +x vhusbdarm64, then sudo ./vhusbdarm64 to confirm it starts cleanly and detects attached USB devices in its log output.
  3. Install as a systemd service so it survives reboots without a manual restart:
sudo mv vhusbdarm64 /usr/local/bin/vhusbd
sudo tee /etc/systemd/system/virtualhere.service > /dev/null <<'EOF'
[Unit]
Description=VirtualHere USB Server
After=network.target

[Service]
ExecStart=/usr/local/bin/vhusbd -n
Restart=always

[Install]
WantedBy=multi-user.target
EOF
sudo systemctl enable --now virtualhere

The -n flag runs it as a standard (non-daemonized) process under systemd's own process management, which plays more cleanly with systemd's restart and logging behavior than letting the binary daemonize itself.

Connecting from a Client

Install the free VirtualHere client (Windows, macOS, and Linux builds are all available) on any machine that needs access to the shared devices. The client auto-discovers VirtualHere servers on the local network via broadcast; if the Pi is on a different subnet or you're connecting over a VPN, add the server manually by IP address instead. Once connected, shared devices appear in the client's device list and can be "used" with a click — at that point the device disappears from any other client currently using it, since USB-over-IP shares exclusive access, not simultaneous access, the same as physically unplugging and replugging the device would.

Free Tier Limits and When to Pay

The free version of VirtualHere limits a single server to sharing one USB device at a time, which is genuinely enough for a lot of single-tool use cases (one shared oscilloscope, one shared license dongle). A shop sharing multiple devices from one Pi (a scanner and a printer and a dongle, say) needs a paid license key, which is inexpensive relative to what it replaces — walking a physical device between machines, or buying a second one.

Security: Don't Expose This Directly to the Internet

VirtualHere's client-server protocol was designed for trusted local networks, and running the server with a port forwarded directly to the internet is not a configuration to use for anything you care about — there is no strong built-in authentication layered on top of the base protocol by default. For genuine remote access (checking in on the shop's USB equipment from elsewhere), put the Pi behind a WireGuard or Tailscale VPN (both covered elsewhere on this site for Raspberry Pi) and connect the VirtualHere client over that tunnel instead of opening the server's port to the world.

Practical Use Cases