socket.gaierror:[Errno 11001] getaddrinfo failed

socket.gaierror: [Errno 11001] getaddrinfo failed
to learn the lesson [TCP support and create a TCP server and TCP protocol outlined Python's] errors
error message:
Here Insert Picture Description
Code:
Here Insert Picture Description
find the cause of the problem for a long time turned out to be the result of more than a space
Here Insert Picture Description
deleted With surprise, after a space, into this mistake! ! ! ! ! !
Here Insert Picture Description
The problem is error port is occupied
by netstat -a see a port occupied change the port would be no problem
and then run normal

Like at the point of a small series to encourage
micro-letter search [IT] ape day old male driver waiting for you on the bus
or scan code number added to the public
Here Insert Picture Description

Published 39 original articles · won praise 29 · views 894

Guess you like

Origin blog.csdn.net/happyk213/article/details/105263437