python socket return codes code example Example: socket hostname socket.gethostbyname(socket.gethostname())