Patent ID: 8605299

Claim:
A terminal on which a device driver for a device is installed, the terminal comprising: a processor; and a memory storing computer-readable instructions that, when executed by the processor, cause the terminal to: obtain, from the device, setting method information for a first IP address that is currently set to the device, wherein the setting method information indicates one of a plurality of types of setting method including: (i) a first type of setting method that is a method where the IP address had been set to the device as a result that the first IP address is input to the device by a user; and (ii) a second type of setting method different from the first type of setting method; and generate a port corresponding to the device when the device driver is being installed to the terminal; wherein the port generating: (a) generates the port by using the first IP address that is currently set to the device in a first case where the setting method information indicates the first type of setting method; and (b) generates the port by using a device name that is currently set to the device in a second case where the setting method information indicates the second type of setting method.