code: private boolean isIPV4address(String address) {
          StringTokenizer st = new StringTokenizer(address, ".");
          List<String> nodes = new ArrayList<String>();
          while (st.hasMoreTokens())
              nodes.add(st.nextToken());
          return (nodes.size() == 4);
      }
docs: ===============================================================