trial code for tcpip protocol