problem with TcpClient while connecting

C

chintu

Guest
Hi,

Here is the code:

TcpClient client = new TcpClient();
client.Connect(clientMc , 9333);
NetworkStream ns = client.GetStream();

Note: clientMc is string storing remote machine name as specified in hostfile.
Problem: If clientMc is localhost, the client is getting connected.
If clientMc is the name of other remote machine, it is not connecting and it is waiting over there.

Could you please suggest me?
Thanks
 
Back
Top