code: 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
docs: Override server_bind to store the server name.