A control method for an information processing apparatus, wherein the information processing apparatus belongs to one of a plurality of subnets in a predetermined network and comprises a first communication means for short-range wireless communication, and a second communication means for longer range wireless communication than that of the first communication means, wherein an external apparatus belongs to a subnet that is included in the plurality of subnets and is different from the subnet to which the information processing apparatus belongs, the subnet to which the information processing apparatus belongs is formed by a first access point outside the information processing apparatus, the subnet to which the external apparatus belongs is formed by a second access point outside the external apparatus, the control method comprising: receiving, by using the first communication means, from the external apparatus, specific information that is an IP address of the external apparatus that transmits the specific information and is for discovering the external apparatus; accepting an instruction from a user for searching for one or a plurality of external apparatuses; executing, by using the specific information that is received before accepting the instruction, in response to accepting the instruction, specified search process for searching for one or a plurality of external apparatuses, wherein one or a plurality of external apparatuses that are discovered by the specified search process includes the external apparatus that transmitted the specific information; displaying a list of information related to the one or a plurality of the discovered external apparatuses; and communicating, by using the second communication means, with an external apparatus corresponding to information that the user has selected from the list. an external apparatus belongs to a subnet that is included in the plurality of subnets and is different from the subnet to which the information processing apparatus belongs, the subnet to which the information processing apparatus belongs is formed by a first access point outside the information processing apparatus, the subnet to which the external apparatus belongs is formed by a second access point outside the external apparatus, the control method comprising: receiving, by using the first communication means, from the external apparatus, specific information that is an IP address of the external apparatus that transmits the specific information and is for discovering the external apparatus; accepting an instruction from a user for searching for one or a plurality of external apparatuses; executing, by using the specific information that is received before accepting the instruction, in response to accepting the instruction, specified search process for searching for one or a plurality of external apparatuses, wherein one or a plurality of external apparatuses that are discovered by the specified search process includes the external apparatus that transmitted the specific information; displaying a list of information related to the one or a plurality of the discovered external apparatuses; and communicating, by using the second communication means, with an external apparatus corresponding to information that the user has selected from the list. receiving, by using the first communication means, from the external apparatus, specific information that is an IP address of the external apparatus that transmits the specific information and is for discovering the external apparatus; accepting an instruction from a user for searching for one or a plurality of external apparatuses; executing, by using the specific information that is received before accepting the instruction, in response to accepting the instruction, specified search process for searching for one or a plurality of external apparatuses, wherein one or a plurality of external apparatuses that are discovered by the specified search process includes the external apparatus that transmitted the specific information; displaying a list of information related to the one or a plurality of the discovered external apparatuses; and communicating, by using the second communication means, with an external apparatus corresponding to information that the user has selected from the list.