1. A method for searching a device that provides a service from a network connecting a plurality of devices, the method comprising: detecting whether a document has been set on a scanner; and searching a device that provides a service which can be used in cooperation with the scanner from among the plurality of devices in response to detecting that the document has been set on the scanner, and searching a device that provides data to be processed from among the plurality of devices in response to detecting that the document has not been set on the scanner.