Fix UDP connection issues