I'm using this on some of my devices (a NixOS Raspberry Pi and an EndeavourOS desktop), since broadcasting (and thus e.g. device discovery) only seems to be guaranteed to work on open ports, so I have to manually assign one of the ports I've opened.
I want to suss out some of the details though before I merge this. In particular, it's not clear why sends (as opposed to broadcasts) are working at all without setting the port to an open one. And it even seems that broadcasts work when preceded by a send on the same port.
I'm using this on some of my devices (a NixOS Raspberry Pi and an EndeavourOS desktop), since broadcasting (and thus e.g. device discovery) only seems to be guaranteed to work on open ports, so I have to manually assign one of the ports I've opened.
I want to suss out some of the details though before I merge this. In particular, it's not clear why sends (as opposed to broadcasts) are working at all without setting the port to an open one. And it even seems that broadcasts work when preceded by a send on the same port.