def METHOD_NAME(self, api_port: int):
    default_network_utils.remember(api_port)
    if self.config.http_port != api_port:
        self.config.http_port = api_port
    process_manager = get_global_process_manager()
    if process_manager:
        process_manager.current_process.METHOD_NAME(api_port)