Patent ID: 8458325

Claim:
An information processing apparatus which stores identification information for detection confirmation of a target network device in advance and executes detection of the target network device by comparing the stored identification information for detection confirmation and identification information acquired from the network device on a network, the information processing apparatus comprising: a setting unit configured to set a range of addresses to be targeted when the network device on the network is detected; a first detection unit configured to detect the target network device by requesting a response including the identification information of the network device from the network device on the network using the broadcast or multicast; a second detection unit configured to detect the target network device by requesting a response including the identification information of the network device from the network device on the network using unicast in the range of addresses to be targeted set by the setting unit; and a control unit configured to control a process that includes: the first detection unit executes a request by the broadcast or the multicast, and repeating until the target network device can be detected, when the response is not returned from the target network device, the second detection unit executes a request by the unicast to a part of the addresses to which a request has not been executed in the range of addresses to be targeted, and when the target network has not been detected, the first detection unit executes a request by the broadcast or the multicast.