An information processing apparatus holding an application program, comprising at least one memory and at least one processor which function as:
- a first display unit configured to display, by the application program, a selection screen for selecting any connection method of connecting a communication apparatus to another apparatus;
- a second display unit configured to, in a case where a selection corresponding to connecting the communication apparatus to another apparatus by a first connection method using a wireless Local Area Network (LAN) is performed on the selection screen, display, by the application program, a confirmation screen for prompting a user to confirm whether an apparatus operating as an access point exists around the communication apparatus;
- and
- an execution unit configured to, in a case where an operation corresponding to confirming that an apparatus operating as an access point exists around the communication apparatus is performed on the confirmation screen, execute, by the application program, connection setting processing for connecting the communication apparatus to another apparatus by the first connection method, and in a case where an operation corresponding to confirming that an apparatus operating as an access point does not exist around the communication apparatus is performed on the confirmation screen, not to execute the connection setting processing by the application program.