public static byte[] getIpAddressBytes() {
    try {
      return Addressing.getIpAddress().getAddress();
    } catch (IOException ex) {
      LOG.warn("Failed to get IP address bytes", ex);
    }
    return new byte[0];
  }
Returns Some IPv4/IPv6 address available on the current machine that is up, not virtual and not
a loopback address. Empty array if none can be found or error occurred.
hbase-client/src/main/java/org/apache/hadoop/hbase/client/ClientIdGenerator.java