Patent ID: 8756305

Claim:
A connection control method for an information processing apparatus, the method comprising: a reception step of receiving identification information identifying each of a first wireless network and a second wireless network; a joining step of joining the first wireless network identified by the identification information received in the reception step; a first search step of searching for one or more predetermined printers having a predetermined function in the first wireless network; a control step of controlling the information processing apparatus to transmit a print request to a first one of the one or more predetermined printers in a case where the first one of the one or more predetermined printers is found by the searching in the first search step, and to join the second wireless network in a case where the one or more predetermined printers are not found by the searching in the first search step, wherein, in the control step, the information processing apparatus is controlled to transmit the print request to a second one of the one or more predetermined printers in a case where the first one of the one or more predetermined printers fails in print processing performed according to the print request and the second one of the one or more predetermined printers is found by the searching in the first search step, and to join the second wireless network in a case where the first one of the predetermined printers fails in print processing performed according to the print request and the second one of the one or more predetermined printers is not found by the searching in the first search step; a second search step of searching for the one or more predetermined printers in the second wireless network in a case where the information processing apparatus joins the second wireless network; a request step of requesting the print processing from a predetermined printer that is a wireless direct print type printer; and a changing step of automatically joining the second wireless network identified by the identification information received in the reception step in a case where the wireless direct print type printer is not found in the first wireless network by the search in the first search step, wherein, in the control step, the information processing apparatus is controlled to search for a plurality of other wireless direct print type printers in the second wireless network, and to request the print processing from one of the other wireless direct print type printers searched for in the second wireless network.