code: private String getIpIfPossible(String pHost) {
          try {
              InetAddress address = InetAddress.getByName(pHost);
              return address.getHostAddress();
          } catch (UnknownHostException e) {
              return pHost;
          }
      }
docs: Check for an IP, since this seems to be safer to return then a plain name