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 ConsulUpdatingListenerBuilder} with the specified {@code consulUri}
and {@code serviceName} to build {@link ConsulUpdatingListener}.

@param consulUri the URI of Consul API service
@param serviceName the service name which is registered into Consul.
consul/src/main/java/com/linecorp/armeria/server/consul/ConsulUpdatingListener.java