ip needs to be int to be incremented