Patent ID: 8576434

Claim:
A printer configured to be connected with a print mediation server through the Internet, the printer comprising: a processor configured to operate as: a judging unit configured to judge whether a first type of communication using a first port number is executable or not with the print mediation server; a first communication executing unit configured to execute the first type of communication so as to receive a predetermined notification from the print mediation server in a case where it is judged that the first type of communication is executable, wherein the predetermined notification is a notification to be sent to the printer by the print mediation server when the print mediation server has stored specific print data in a storage unit according to an instruction from a terminal device; a second communication executing unit configured to: (A) execute, when the predetermined notification is received, a second type of communication using a second port number different from the first port number with the print mediation server so as to acquire specific address information indicating a storage address of the specific print data in the storage unit from the print mediation server, in the case where it is judged that the first type of communication is executable; and (B) execute, even if the predetermined notification is not received, the second type of communication at a predetermined timing so as to acquire the specific address information from the print mediation server, in a case where it is judged that the first type of communication is not executable; a data acquiring unit configured to acquire the specific print data from the storage unit by using the specific address information; and a print control unit configured to cause a print executing unit to execute printing of an image represented by the specific print data.