hi every body
 
i have a problem in socket programming
i am using c#
 
i am making a small application using tcplistener and tcpclient
 
i start the listener successfully
 
but when i open the client form
it gives me an exception
 
it's messege is
 "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond" 
 
and it's error   10060
 
i though it may be the port or sth
 
but when i changed it it gives the same exception
 
and also if the listener is not started it gives the same exeption
 
this is the code of the client
 

sr = new StreamReader(new FileStream("IP.txt",FileMode.Open,FileAccess.Read));

string ipad = sr.ReadLine();

Cilent = new TcpClient(ipad,8000); //here it gives the exception

sr.Close();

 
the stream reader has no problems
it reads the ip address correctly
i am just trying both applications on the same pc
 
i am sorry 4 this long mail
 
thnx in advance
 
bye
 

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


YAHOO! GROUPS LINKS




Reply via email to