A communication device comprising: a plurality of targets (32, 33, 34, 41L, 42L))which execute a predetermined process, respectively; and a front end configured to perform near field communication with an external device, wherein the plurality of targets include an application of P2P (Peer to Peer), said application of P2P having the highest priority in a selection by the front end of a candidate final target among the plurality of targets, wherein the front end is further configured to transmit a first command to the plurality of targets for selecting a candidate final target, said first command being received by the front end from the external device; wherein the front end is further configured to select the application of P2P as candidate final target; wherein the front end is further configured to receive a second command from the external device, said second command including identification information of the application of P2P; said communication device characterized in that the front end is further configured to determine whether or not the received second command is a command of the application of P2P; and if said second command is determined to be a command of the application of P2P, then the front end is further configured to select the candidate final target as the final target; and if said second command is determined not to be a command of the application of P2P, then the front end is further configured to select among the plurality of targets a final target other than the application of P2P and to lower the priority of the application of P2P in the selection of the candidate of the final target; wherein said final target is a communication target of the external device. a plurality of targets (32, 33, 34, 41L, 42L))which execute a predetermined process, respectively; and a front end configured to perform near field communication with an external device, wherein the plurality of targets include an application of P2P (Peer to Peer), said application of P2P having the highest priority in a selection by the front end of a candidate final target among the plurality of targets, wherein the front end is further configured to transmit a first command to the plurality of targets for selecting a candidate final target, said first command being received by the front end from the external device; wherein the front end is further configured to select the application of P2P as candidate final target; wherein the front end is further configured to receive a second command from the external device, said second command including identification information of the application of P2P; said communication device characterized in that the front end is further configured to determine whether or not the received second command is a command of the application of P2P; and if said second command is determined to be a command of the application of P2P, then the front end is further configured to select the candidate final target as the final target; and if said second command is determined not to be a command of the application of P2P, then the front end is further configured to select among the plurality of targets a final target other than the application of P2P and to lower the priority of the application of P2P in the selection of the candidate of the final target; wherein said final target is a communication target of the external device.