working udp&tcp connection