Skip to content Skip to sidebar Skip to footer

I Am Getting Error [ Socket.gaierror :[errno 11004] Getaddrinfo Failed]

Here the code snippet: import socket,sys s = socket.socket(socket.AF_INET,socket.SOCK_DGRAM) MAX = 65535 PORT = 6000 if sys.argv[1:]==['server']: s.bind(('127..0.0.1',PORT)

Solution 1:

Just replace this line:

s.bind(('127..0.0.1',PORT))

with this:

s.bind(('127.0.0.1',PORT))

Post a Comment for "I Am Getting Error [ Socket.gaierror :[errno 11004] Getaddrinfo Failed]"