I wrote 2 programs in Python. One creates a host socket while the other one creates a client socket. Then they try to coect. I had my host program on my PC and put my client program on my phone that was coected to the WIFI on the same network as my PC. I set the client program to coect to local IP address of my PC. I checked for flaws in my code and found out it is flawless. However when I tried to run it, I got some very strange behaviour in retu:
I do the same as in 10. setting the client program to coect to my PCs local IP address again. Error:
Traceback (most recent call last):
File "<pyshell#5>", line 1, in <module>
s.coect(cn)
File "C:Python27libsocket.py", line 224, in meth
retu getattr(self._sock,name)(*args)
error: [Ero 10060] A coection attempt failed because the coected party did not properly respond after a period of time, or established coection failed because coected host has failed to respond
In 6. I came to the conclusion that the problem is related to the PC and that my programs work fine.
Some intels:
What is going on? Thank you for your answers.
برچسب:
نویسنده: استخدام کار