Patent ID: 7924449

Claim:
A printing apparatus comprising: a receiving unit configured to receive a request from an information processing apparatus; an assigning unit configured to, in response to the receiving unit receiving the request, assign a printing port which is not assigned to another information processing apparatus among a plurality of printing ports which are provided in the printing apparatus and which can be used for receiving print data, to the information processing apparatus; a notification unit configured to notify the information processing apparatus of a URI which includes the printing port assigned to the information processing apparatus; and a management unit configured to manage identification information for identifying the information processing apparatus and port information representing the assigned printing port based on the URI notified by the notification unit, such that the identification information and the port information are associated with each other by creating a state that the port cannot be assigned to the other information processing apparatus, wherein when no assignable printing port exists, the assigning unit does not assign any ports to the information processing apparatus, and the notification unit notifies the information processing apparatus of an error, and wherein when the print data is sent to the assigned printing port, the sent print data is processed on condition that the print data is sent from the information processing apparatus which is associated with the assigned printing port.