public static String concatLoopbackAddressPort(int port) {
    return concatHostPort(resolveLoopbackAddress(), port);
  }
Concatenates the IPv4 or IPv6 loopback address depending on the preferred stack with the specified port.
@return the wildcard address and port string
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/common/IPStackUtils.java