A communication apparatus comprising: a first communication unit configured to perform a wireless communication with a first storage media that stores therein association information for establishing a wireless connection with a data processing apparatus, the first communication unit being further configured to perform a wireless communication with a second storage media that stores therein user identification information for identifying a user, the first communication unit being configured to receive the association information and the user identification from the first and second storage media, respectively; an input unit configured to receive identification information input by a user; a clocking unit configured to clock elapsed time from reception of the association information to reception of the user identification information or from reception of the user identification information to reception of the association information; a determination unit configured to determine whether the association information received from the first communication unit is valid, the determination unit determining that the association information is valid when the user identification information received from the second storage media matches the identification information input by the user to the input unit and the elapsed time does not exceed a preset value; and a second communication unit configured to establish a wireless connection with the data processing apparatus based on the association information received from the first storage media when the determination unit determines that the association information received from the first storage media is valid. a first communication unit configured to perform a wireless communication with a first storage media that stores therein association information for establishing a wireless connection with a data processing apparatus, the first communication unit being further configured to perform a wireless communication with a second storage media that stores therein user identification information for identifying a user, the first communication unit being configured to receive the association information and the user identification from the first and second storage media, respectively; an input unit configured to receive identification information input by a user; a clocking unit configured to clock elapsed time from reception of the association information to reception of the user identification information or from reception of the user identification information to reception of the association information; a determination unit configured to determine whether the association information received from the first communication unit is valid, the determination unit determining that the association information is valid when the user identification information received from the second storage media matches the identification information input by the user to the input unit and the elapsed time does not exceed a preset value; and a second communication unit configured to establish a wireless connection with the data processing apparatus based on the association information received from the first storage media when the determination unit determines that the association information received from the first storage media is valid.