Convert from Ip to int and upside down