Reach a headless Raspberry Pi over one USB cable: the rpi-usb-gadget Ethernet gadgetprocedure · unverified · rpi-usb-gadget makes the Pi appear as a USB network adapter to the host (CDC-ECM on Linux/macOS, RNDIS on Windows). It switches automatically between using the host's connection sharing and serving DHCP/NAT itself at 10.12.194.1/28.