A control method of an information processing apparatus capable of communicating using a first communication method and communicating using a second communication method, the control method comprising: performing a search for a communication apparatus on a network using the first communication method, the search being for a communication apparatus capable of communication using an application of the information processing apparatus; performing, by using the second communication method, predetermined communication for obtaining predetermined connection information for establishing a connection with the communication apparatus using the first communication method, based on not finding the communication apparatus on the network in the performed search; and obtaining information about a capability of the communication apparatus via the connection with the communication apparatus using the first communication method and registering in the application the communication apparatus and the obtained information about the capability, wherein in the event that the predetermined communication is performed, the connection is established based on the predetermined connection information obtained by the predetermined communication, the method further comprising: accepting, by the application and after obtaining the information about the capability of the communication apparatus, a communication instruction from a user for communicating predetermined data; and after the communication instruction is accepted, performing a second search processing for searching for the communication apparatus on the network, wherein in a case where the communication apparatus is found by the second search processing, the predetermined data is communicated with the communication apparatus via the network using the first communication method. performing a search for a communication apparatus on a network using the first communication method, the search being for a communication apparatus capable of communication using an application of the information processing apparatus; performing, by using the second communication method, predetermined communication for obtaining predetermined connection information for establishing a connection with the communication apparatus using the first communication method, based on not finding the communication apparatus on the network in the performed search; and obtaining information about a capability of the communication apparatus via the connection with the communication apparatus using the first communication method and registering in the application the communication apparatus and the obtained information about the capability, wherein in the event that the predetermined communication is performed, the connection is established based on the predetermined connection information obtained by the predetermined communication, the method further comprising: accepting, by the application and after obtaining the information about the capability of the communication apparatus, a communication instruction from a user for communicating predetermined data; and after the communication instruction is accepted, performing a second search processing for searching for the communication apparatus on the network, wherein in a case where the communication apparatus is found by the second search processing, the predetermined data is communicated with the communication apparatus via the network using the first communication method. accepting, by the application and after obtaining the information about the capability of the communication apparatus, a communication instruction from a user for communicating predetermined data; and after the communication instruction is accepted, performing a second search processing for searching for the communication apparatus on the network, wherein in a case where the communication apparatus is found by the second search processing, the predetermined data is communicated with the communication apparatus via the network using the first communication method.