Trying to get int from ipv4 string