public static boolean isIpAddress(String input) {
		if (input == null || input.isEmpty())
			return false;
		input = input.trim();
		if ((input.length() < 6) & (input.length() > 15))
			return false;

		try {
			Pattern pattern = Pattern
					.compile("^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$");
			Matcher matcher = pattern.matcher(input);
			return matcher.matches();
		} catch (PatternSyntaxException ex) {
			return false;
		}
	}