Distinguish between TCP and UDP port in get_port.
Test TCP and IPv4 in alice and bob tests.