private static Endpoint defaultEndpoint(Server server) {
        final ServerPort serverPort = server.activePort();
        assert serverPort != null;

        final Inet4Address inet4Address = SystemInfo.defaultNonLoopbackIpV4Address();
        final String host = inet4Address != null ? inet4Address.getHostAddress() : server.defaultHostname();
        return Endpoint.of(host, serverPort.localAddress().getPort());
    }
Returns a newly-created {@link NacosUpdatingListenerBuilder} with the specified {@code nacosUri}
and {@code serviceName} to build {@link NacosUpdatingListener}.

@param nacosUri the URI of Nacos API service, including the path up to but not including API version.
                (example: http://localhost:8848/nacos)
nacos/src/main/java/com/linecorp/armeria/server/nacos/NacosUpdatingListener.java