public static Set<String> getAllLocalAddresses() throws UnknownHostException {
    // Check internal and external, IPv4 and IPv6 network addresses
    Set<String> selfAddresses =
        Arrays.stream(InetAddress.getAllByName(InetAddress.getLocalHost().getHostName()))
            .map(InetAddress::getHostAddress)
            .collect(Collectors.toCollection(HashSet::new));
    // Check IPv4 and IPv6 loopback addresses 127.0.0.1 and 0.0.0.0.0.0.0.1
    selfAddresses.addAll(
        Arrays.stream(InetAddress.getAllByName(LOOPBACK_HOST_NAME))
            .map(InetAddress::getHostAddress)
            .collect(Collectors.toCollection(HashSet::new)));
    // Check general address 0.0.0.0
    selfAddresses.add(WILD_CARD_ADDRESS);

    return selfAddresses;
  }
Return all the internal, external, IPv4, IPv6 and loopback addresses(without hostname) of the
node

@return the local addresses set
@throws UnknownHostException Throw when unable to self addresses or host names (Normally not
    thrown)
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/NodeUrlUtils.java