pub fn unused_tcp_and_udp_port() -> u16
test-utils
Finds a single port that is unused for both TCP and UDP.