Fixed connecting to udp.