Add isIpV4 method

Add isIpV4 method