code: public static boolean isInRangeV4(byte[] network,byte[] subnet,byte[] ipAddress)
      {
      	if(network.length!=4 || subnet.length!=4 || ipAddress.length!=4)
      		return false;    	
      	
      	return compareByteValues(network,subnet,ipAddress);
      }
docs: Checks whether ipAddress is in IPV4 network with specified subnet