Switch order of connection logic so TCP is tried first