BACKGROUND

Field

The present invention relates to an information processing apparatus, a control method, and a non-transitory computer-readable storage medium storing a program.

Description of the Related Art

In an environment where an information processing apparatus and a printing apparatus are connected to the same network, the information processing apparatus is capable of controlling the printing apparatus via the network. A solution for a case where the information processing apparatus and the printing apparatus are unable to communicate with each other via the network is disclosed in Japanese Patent No. 4343673.

SUMMARY

Various embodiments of the present disclosure provide a mechanism for improving convenience of use in a situation where communication is disabled between an information processing apparatus and a printing apparatus.

Various embodiments provide an information processing apparatus for communicating with a printing apparatus. The information processing apparatus includes a generation unit configured to generate, when communication with the printing apparatus using first port setting information in a print queue for the printing apparatus is disabled, second port setting information that is different from the first port setting information and that enables communication with the printing apparatus, the generation of the second port setting information being based on information acquired from the printing apparatus. The information processing apparatus also includes a change unit configured to change port setting information in the print queue from the first port setting information to the second port setting information, where, in response to an Internet Protocol (IP) address of the printing apparatus being changed after generation of the second port setting information, the information processing apparatus is able to use the second port setting information to communicate with the printing apparatus by automatically using the changed IP address, wherein the generation unit and the change unit are implemented by at least one processor of the information processing apparatus.

In various embodiments of the present disclosure, communication that improves convenience of use is enabled.

Further features will become apparent from the following description of exemplary embodiments with reference to the attached drawings.

