主权项 |
1. A method of managing IP addresses in a device performing communication using the IP address, the method comprising:
acquiring a plurality of IP addresses using a plurality of different methods by which the device acquires an IP address to communicate with a network; storing the plurality of IP addresses along with the plurality of different methods by which the IP addresses are acquired in the device such that the different methods by which the IP addresses are acquired are discernable from the IP addresses, determining a valid IP address used to communicate with the network from the plurality of IP addresses according to a predetermined priority of the different methods if the plurality of IP addresses are the same, and setting the IP address to be used in the communication; determining the valid IP address according to the priority from the stored IP addresses except for a disappearing IP address when a previously stored IP address expires; and setting the IP address to be used in the communication, wherein a corresponding IP address is associated and stored for each the plurality of methods of acquiring the IP addresses, and the methods of acquiring the IP addresses include a method of acquiring an IP address input by a user of the device, a method of acquiring an IP address generated by the device, a method of acquiring an IP address generated on the basis of a network address acquired from a router connected to the device, and a method of acquiring an IP address from a DHCP server connected to the device. |