code: private static boolean isNetworkInterfaceAddress(InetAddress address) {
          try {
              if (NetworkInterface.getByInetAddress(address) != null) {
                  return true;
              }
          } catch (SocketException e) {
              log.warn("Failed to check if an address is from a network interface:", e);
          }
          return false;
      }
docs: Tells whether or not the given {@code address} belongs to any of the network interfaces.
  
  @param address the address that will be checked
  @return {@code true} if the address belongs to any of the network interfaces, {@code false} otherwise.
  @see NetworkInterface#getByInetAddress(InetAddress)