code: public static Set<InetAddress> getAddresses() {
          Set<InetAddress> allAddresses = new LinkedHashSet<>();
          Map<String, Set<InetAddress>> interfaceAddressMap = getNetworkInterfaceAddresses(false);
          for (Map.Entry<String, Set<InetAddress>> entry : interfaceAddressMap.entrySet()) {
              Set<InetAddress> addresses = entry.getValue();
              if (!addresses.isEmpty()) {
                  for (InetAddress address : addresses) {
                      allAddresses.add(address);
                  }
              }
          }
          return allAddresses;
      }
docs: Returns a {@link Set} of {@link InetAddress} that are non-loopback or mac.
  @return