I have a small microcontroller device that I program via USB using Python. The device has an Ethernet connection, which can be configured either with DHCP or by manually setting the IP/Subnet via USB. The device is connected to my local LAN using a very simple unmanaged switch.
My understanding is that in order for UDP multicast to work, the device needs to have its IP set, even though it's simply listening to a multicast group/port. This may seem counterintuitive.
Is there a way for UDP clients to listen to a multicast group/port without setting their own IP?
Or alternatively, is there a way to communicate with the device via Ethernet before its IP is set?
tcpdump -i eth0 -n udp
. You might also have to specifyether broadcast or ether multicast
, but I'm pretty sure that's just for filtering out.echo -n 1234567890| ncat -vu 224.4.4.4 4444
. serverfault.com/a/1062886/411612enp2s0
is a newer-style systemd/udev "predictable" name freedesktop.org/wiki/Software/systemd/…. Those can usually be disabled or customized.