code: public static String getLocalHostAddress() throws UnknownHostException, SocketException {
          try {
              return getLocalHost().getHostAddress();
          } catch (Exception e) {
              Scope.getCurrentScope().getLog(NetUtil.class).fine(LogType.LOG, "Error getting hostname", e);
              return "unknown";
          }
      }
docs: Returns Local Host IP Address
  @return local Host IP address
  @throws UnknownHostException
  @throws SocketException