change ip addr to int