kingofearth.com at gmail.com wrote: > NameError: name 'socket' is not defined You forgot to import the socket module: import socket regards, Achim