I can visit those two websites above, but when I run your code, I get those errors(BTW,I have closed my firewall ):
>>> import socket >>> socket.getaddrinfo("www.xmethods.net", 80) Traceback (most recent call last): File "<pyshell#1>", line 1, in -toplevel- socket.getaddrinfo("www.xmethods.net", 80) gaierror: (11001, 'getaddrinfo failed') >>> socket.getaddrinfo("services.xmethods.net", 80) Traceback (most recent call last): File "<pyshell#2>", line 1, in -toplevel- socket.getaddrinfo("services.xmethods.net", 80) gaierror: (11001, 'getaddrinfo failed') >>> what can I do? -- http://mail.python.org/mailman/listinfo/python-list