Does anyone know how to prevent this error from occurring: IOError: [Errno socket error] (10060, 'Operation timed out'). I am using the following code without any luck. Obviously I am missing something. import socket socket.setdefaulttimeout(20) Thank you in advance. Tom Williams