static void MakeClientCallToServer(object objMsg) { string msg = (string)objMsg; MyTcpClient client = new MyTcpClient(IPAddress.Loopback, 55555); client.ConnectToServer(msg); }