pub fn allocate_port() -> u16
Bind port 0 to get an OS-assigned free port, then close the listener.
Panics if binding to an ephemeral port fails.