20 ms·
Domain names: https://en.wikipedia.org/wiki/Multicast_DNS https://en.wikipedia.org/wiki/Multicast_DNS Yes, you have to have either some kind of network configu
by megous 3y ago
Domain names: https://en.wikipedia.org/wiki/Multicast_DNS https://en.wikipedia.org/wiki/Multicast_DNS
Yes, you have to have either some kind of network configuration, and enable the network interface that appears after you pluging in the USB device. It's no different from using USB-ethernet adapters.
The easiest is probably to rely on link local addresses and mDNS if all you need is local access from the computer you connected the device to. On a systemd based Linux distros, mDNS is enabled by default in systemd-resolved daemon. On my distro, there's no default configuration for usb network adapters, so I have to do that part by myself. Other systems may work differently and auto-enable USB interfaces and at least setup link local addresses on them. The device implementig the gadget has to do the same.