A method of providing Internet Protocol data communication in a near field communication peer to peer communication environment by a second NFC device, comprising: establishing a NFC peer to peer link between a first NFC device and the second NFC device; receiving a first configuration frame containing IP configuration parameters associated with the first NFC device from the first NFC device via a NFC interface; transmitting a second configuration frame containing IP configuration parameters associated with the second NFC device via the NFC interface in response to the first configuration frame; identifying whether a first IP address of the first NFC device comprised in the first configuration frame is identical to a second IP address of the second NFC device comprised in the second configuration frame; setting up an IP communication with the first NFC device over the NFC interface based on the identifying; and exchanging IP data with the first NFC device over the NFC interface in a NFC peer to peer mode based on setting up the IP communication, wherein setting up the IP communication with the first NFC device over the NFC interface based on the identifying comprises: if the first IP address of the first NFC device is identical to the second IP address of the second NFC device, transmitting a message indicating failure to the first NFC device, allocating automatically a third IP address different from the second IP address of the second NFC device, and transmitting the different IP address to the first NFC device at a random interval; and if the first IP address of the first NFC device is not identical to the second IP address of the second NFC device, setting up the IP communication with the first NFC device over the NFC interface based on the IP configuration parameters associated with the first NFC device, wherein the IP configuration parameters associated with the first NFC device comprise a configuration frame type, the first IP address associated with the first NFC device, a role associated with the first NFC device, and a network interface type supported by the first NFC device. establishing a NFC peer to peer link between a first NFC device and the second NFC device; receiving a first configuration frame containing IP configuration parameters associated with the first NFC device from the first NFC device via a NFC interface; transmitting a second configuration frame containing IP configuration parameters associated with the second NFC device via the NFC interface in response to the first configuration frame; identifying whether a first IP address of the first NFC device comprised in the first configuration frame is identical to a second IP address of the second NFC device comprised in the second configuration frame; setting up an IP communication with the first NFC device over the NFC interface based on the identifying; and exchanging IP data with the first NFC device over the NFC interface in a NFC peer to peer mode based on setting up the IP communication, wherein setting up the IP communication with the first NFC device over the NFC interface based on the identifying comprises: if the first IP address of the first NFC device is identical to the second IP address of the second NFC device, transmitting a message indicating failure to the first NFC device, allocating automatically a third IP address different from the second IP address of the second NFC device, and transmitting the different IP address to the first NFC device at a random interval; and if the first IP address of the first NFC device is not identical to the second IP address of the second NFC device, setting up the IP communication with the first NFC device over the NFC interface based on the IP configuration parameters associated with the first NFC device, wherein the IP configuration parameters associated with the first NFC device comprise a configuration frame type, the first IP address associated with the first NFC device, a role associated with the first NFC device, and a network interface type supported by the first NFC device. if the first IP address of the first NFC device is identical to the second IP address of the second NFC device, transmitting a message indicating failure to the first NFC device, allocating automatically a third IP address different from the second IP address of the second NFC device, and transmitting the different IP address to the first NFC device at a random interval; and if the first IP address of the first NFC device is not identical to the second IP address of the second NFC device, setting up the IP communication with the first NFC device over the NFC interface based on the IP configuration parameters associated with the first NFC device, wherein the IP configuration parameters associated with the first NFC device comprise a configuration frame type, the first IP address associated with the first NFC device, a role associated with the first NFC device, and a network interface type supported by the first NFC device.