'Override server_bind to store the server name.'

def server_bind(self):

    SocketServer.TCPServer.server_bind(self)
    (host, port) = self.socket.getsockname()[:2]
    self.server_name = socket.getfqdn(host)
    self.server_port = port
