code: private static String getAddrInfo(InetAddress pAddr) throws SocketException {
          String ret = pAddr.getHostName() != null ? pAddr.getHostName() + " (" + pAddr.getHostAddress() + ")" : pAddr.getHostAddress();
          ret += " [site-local: " + pAddr.isSiteLocalAddress() + ", link-local: " + pAddr.isLinkLocalAddress() + ", lb: " + pAddr.isLoopbackAddress() + "]";
          NetworkInterface nif = NetworkInterface.getByInetAddress(pAddr);
          ret += " -- nif: " + getNetworkInterfaceInfo(nif);
          return ret;
      }
docs: Dump methods