added ip to integer conversion