Fallback to udp if tcp not supported.