docs: public static Collection<InetAddress> getAllLocalIPs() throws SocketException {
          final List<InetAddress> listAdr = new ArrayList<>();
          final Enumeration<NetworkInterface> nifs = NetworkInterface.getNetworkInterfaces();
          if (nifs == null) {
              return listAdr;
          }
  
          while (nifs.hasMoreElements()) {
              final NetworkInterface nif = nifs.nextElement();
              // We ignore subinterfaces - as not yet needed.
  
              final Enumeration<InetAddress> adrs = nif.getInetAddresses();
              while (adrs.hasMoreElements()) {
                  final InetAddress adr = adrs.nextElement();
                  if (getLocalIpFilter().use(nif, adr)) {
                      listAdr.add(adr);
                  }
              }
          }
          return listAdr;
      }