docs: private static InetAddress getLocalAddress() throws UnknownHostException {
      try {
        return InetAddress.getLocalHost();  // first NIC
      } catch (Exception ignore) {
        return InetAddress.getByName(null);
      }
    }