<!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy -->

- [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.

### Environment

* Dubbo version: 3.0.9
* Operating System version: xxx
* Java version: xxx

### Steps to reproduce this issue

1. close registry : `<dubbo:registry id="registry1" address="N/A"/>`
2. start application 
3. telnet 127.0.0.1 22222

Pls. provide [GitHub address] to reproduce this issue.

### Expected Behavior

connect success.

### Actual Behavior

telnet: connect to address 127.0.0.1: Connection refused


if (!hasStarted.compareAndSet(false, true)) {
                return;
            }
            boolean qosEnable = url.getParameter(QOS_ENABLE, true);
            if (!qosEnable) {
                logger.info("qos won't be started because it is disabled. " +
                        "Please check dubbo.application.qos.enable is configured either in system property, " +
                        "dubbo.properties or XML/spring-boot configuration.");
                return;
            }
            String host = url.getParameter(QOS_HOST);
            int port = url.getParameter(QOS_PORT, QosConstants.DEFAULT_PORT);
            boolean acceptForeignIp = Boolean.parseBoolean(url.getParameter(ACCEPT_FOREIGN_IP, "false"));
            Server server = frameworkModel.getBeanFactory().getBean(Server.class);
            server.setHost(host);
            server.setPort(port);
            server.setAcceptForeignIp(acceptForeignIp);
            server.start();
        } catch (Throwable throwable) {
            logger.warn("Fail to start qos server: ", throwable);
        }
    }
     void stopServer() {
        if (hasStarted.compareAndSet(true, false)) {
            Server server = frameworkModel.getBeanFactory().getBean(Server.class);
            server.stop();
        }
    }
}