most common is the path to the server is firewalled or the server did not respond.
What's not in your post is why the word Ping is there. Did you want to do that?
I have the following code in my WM6 application
TcpClient client = new TcpClient();
client.Connect(IpEndPoint);// IpEndPoint is a combination of a valid remote IP and port.
NetworkStream networkstream = client.GetStream();
streamwriter = new StreamWriter(networkstream,new System.Text.UTF8Encoding(false,true));
I always get the error :"Unable to write to the transport connection. An existing connection was forcibly closed by the remote host"
Where am I going wrong..plz help