An information processing apparatus comprising: registration means for registering a communication apparatus; first communication means for performing communication with the communication apparatus by a first communication method; second communication means for performing communication with the communication apparatus by a second communication method different from the first communication method; obtaining means for obtaining, from the communication apparatus, via the second communication means, network information related to network connection by the first communication method in the communication apparatus; and first determination means for determining a connection method to be used for performing connection by the first communication method between the information processing apparatus and the communication apparatus in accordance with the obtained network information; characterized in that the information processing apparatus further comprises: second determination means for determining, in a case where the information processing apparatus is not able to connect, via the first wireless communication means, to the communication apparatus that has been registered, whether or not registration information obtained at a time when the communication apparatus was registered matches the network information obtained by the obtaining means; display control means for displaying an error screen in a case where it is determined that the registration information matches the network information; and connection means for, upon acceptance by the user of the information processing apparatus of a connection restoration, connecting to the communication apparatus that has been registered using the registration information in a case where it is determined that the registration information does not match the network information. registration means for registering a communication apparatus; first communication means for performing communication with the communication apparatus by a first communication method; second communication means for performing communication with the communication apparatus by a second communication method different from the first communication method; obtaining means for obtaining, from the communication apparatus, via the second communication means, network information related to network connection by the first communication method in the communication apparatus; and first determination means for determining a connection method to be used for performing connection by the first communication method between the information processing apparatus and the communication apparatus in accordance with the obtained network information; characterized in that the information processing apparatus further comprises: second determination means for determining, in a case where the information processing apparatus is not able to connect, via the first wireless communication means, to the communication apparatus that has been registered, whether or not registration information obtained at a time when the communication apparatus was registered matches the network information obtained by the obtaining means; display control means for displaying an error screen in a case where it is determined that the registration information matches the network information; and connection means for, upon acceptance by the user of the information processing apparatus of a connection restoration, connecting to the communication apparatus that has been registered using the registration information in a case where it is determined that the registration information does not match the network information. second determination means for determining, in a case where the information processing apparatus is not able to connect, via the first wireless communication means, to the communication apparatus that has been registered, whether or not registration information obtained at a time when the communication apparatus was registered matches the network information obtained by the obtaining means; display control means for displaying an error screen in a case where it is determined that the registration information matches the network information; and connection means for, upon acceptance by the user of the information processing apparatus of a connection restoration, connecting to the communication apparatus that has been registered using the registration information in a case where it is determined that the registration information does not match the network information.