An integrated circuit chip card comprising: a processor; a memory storing a plurality of applications (252-1 to 252-n) executable by the processor; an input/output (I/O) interface; and a network interface coupled to the I/O interface and implementing a plurality of logical ports (222-1 to 222-n) to communicate with an external device in a socket communication mode, wherein: the network interface is configured to select between multiple communication protocols to communicate with the external device; the network interface is configured to establish a plurality of communication channels between the external device and the integrated circuit chip card using the plurality of logical ports (222-1 to 222-n); and each of the communication channels of the plurality of communication channels established using a logical port of the plurality of logical ports (222-1 to 222-n) is configured to communicate with at least one application of the plurality of applications (252-1 to 252-n); and wherein the integrated circuit chip card is configured to: receive a signal from the external device indicative of a communication mode used by the external device; determine that the communication mode is the socket communication mode; receive data from the external device via a first logical port of a socket; and determine whether the data is card management data or APDU command data based on a number of bytes of the data received at the first logical port, characterized in that the data is card management data if the length of the data received at the first logical port is only one byte, and wherein the data is APDU command data if the length of the data received at the first logical port is at least two bytes. a processor; a memory storing a plurality of applications (252-1 to 252-n) executable by the processor; an input/output (I/O) interface; and a network interface coupled to the I/O interface and implementing a plurality of logical ports (222-1 to 222-n) to communicate with an external device in a socket communication mode, wherein: the network interface is configured to select between multiple communication protocols to communicate with the external device; the network interface is configured to establish a plurality of communication channels between the external device and the integrated circuit chip card using the plurality of logical ports (222-1 to 222-n); and each of the communication channels of the plurality of communication channels established using a logical port of the plurality of logical ports (222-1 to 222-n) is configured to communicate with at least one application of the plurality of applications (252-1 to 252-n); and wherein the integrated circuit chip card is configured to: receive a signal from the external device indicative of a communication mode used by the external device; determine that the communication mode is the socket communication mode; receive data from the external device via a first logical port of a socket; and determine whether the data is card management data or APDU command data based on a number of bytes of the data received at the first logical port, characterized in that the data is card management data if the length of the data received at the first logical port is only one byte, and wherein the data is APDU command data if the length of the data received at the first logical port is at least two bytes. the network interface is configured to select between multiple communication protocols to communicate with the external device; the network interface is configured to establish a plurality of communication channels between the external device and the integrated circuit chip card using the plurality of logical ports (222-1 to 222-n); and each of the communication channels of the plurality of communication channels established using a logical port of the plurality of logical ports (222-1 to 222-n) is configured to communicate with at least one application of the plurality of applications (252-1 to 252-n); and receive a signal from the external device indicative of a communication mode used by the external device; determine that the communication mode is the socket communication mode; receive data from the external device via a first logical port of a socket; and determine whether the data is card management data or APDU command data based on a number of bytes of the data received at the first logical port, characterized in that the data is card management data if the length of the data received at the first logical port is only one byte, and wherein the data is APDU command data if the length of the data received at the first logical port is at least two bytes.