tcp and udp working