This is a "patch" (not really for ease of use) to allow UDP communication in non-host-mode docker.
When home assistant opens a UDP port for streaming (esphome voice_assistant, media_player, etc) it just asks for a random port from the OS. Not knowing which ports will be used makes it impossible to tell your container system which ports to forward/allow.
This just adds a simple loop which tries to open a port from always the same starting port and tries to find the next open one.
8124-8156