Patent ID: 8762572

Claim:
A communication device comprising: a memory; and a processor, the processor configured to operate as: a registration unit configured to register method information indicating an IP address setting method of the communication device and an IP address of the communication device in the memory, wherein the method information is any one of plural kinds of method information including: a first kind of method information that indicates a first kind of setting method for setting a dynamic IP address automatically allocated to the communication device as the IP address of the communication device; and a second kind of method information that indicates a second kind of setting method for setting a static IP address manually designated by a user as the IP address of the communication device; and a communication execution unit configured to perform communication using the IP address registered in the memory, wherein the registration unit includes a change unit configured to change registered contents of the memory in accordance with an instruction of the user, wherein when the first kind of method information and a first IP address are registered in the memory, the change unit does not change the method information in the memory from the first kind of method information to the second kind of method information in a first case where a method change instruction for changing the first kind of setting method to the second kind of setting method is given by the user under a state where the first IP address has not been changed to another IP address, and wherein when the first kind of method information and the first IP address are registered in the memory, the change unit changes the method information in the memory from the first kind of method information to the second kind of method information in a second case where a method change instruction for changing the first kind of setting method to the second kind of setting method is given by the user under a state where the first IP address has been changed to another IP address.