this code worked fine with me
TcpListener tc =
new TcpListener(IPAddress.Any,9090); //servertc.Start();
TcpClient tc1 =
new TcpClient("192.168.10.48",9090); //client
so it may be the port or firewall
mona shokrof <[EMAIL PROTECTED]> wrote:
hi every bodyi have a problem in socket programmingi am using c#i am making a small application using tcplistener and tcpclienti start the listener successfullybut when i open the client formit gives me an exceptionit'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 10060i though it may be the port or sthbut when i changed it it gives the same exceptionand also if the listener is not started it gives the same exeptionthis is the code of the clientsr =
new StreamReader(new FileStream("IP.txt",FileMode.Open,FileAccess.Read)); string ipad = sr.ReadLine();Cilent =
new TcpClient(ipad,8000); //here it gives the exceptionsr.Close();
the stream reader has no problemsit reads the ip address correctlyi am just trying both applications on the same pci am sorry 4 this long mailthnx in advancebye__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Mostafa A.Basha
Yahoo! for Good
Click here to donate to the Hurricane Katrina relief effort.
SPONSORED LINKS
| Basic programming language | C programming language | Computer programming languages |
| Programming languages | C programming language | Software programming language |
YAHOO! GROUPS LINKS
- Visit your group "Microsofts_C_Sharp" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
