Fix invalid socket type fo outgoing server