public boolean isValidSocket(String[] s) {
		try {
			int p = Integer.parseInt(s[1]);
			String[] ip_s = s[0].split("\\.");
			int[] ip = { Integer.parseInt(ip_s[0]), Integer.parseInt(ip_s[1]),
					Integer.parseInt(ip_s[2]), Integer.parseInt(ip_s[3]) };
			boolean isValid = (p >= 0 && ip[0] >= 0 && ip[1] >= 0 && ip[2] >= 0
					&& ip[3] >= 0 && ip[0] < 256 && ip[1] < 256 && ip[2] < 256 && ip[3] < 256);
			return isValid;
		} catch (Exception e) {
			e.printStackTrace();
			return false;
		}
	}