ip must be an int