An electronic device for transmitting data, the electronic device comprising: a display unit; a Near Field Communication, NFC, unit; a short-range communication unit; and a controller configured to: control the display unit to display a multimedia file; based on the electronic device being in contact with an external device to perform near field communication with the external device, control the NFC unit to deliver address information of the electronic device and file information of the multimedia file towards the external device, activate the short-range communication unit based on the address information and the file information of the multimedia file being sent, receive a connection request from the external device, based on a connection request from the external device being received, set the electronic device as a group owner, and connect the electronic device to the external device through the short-range communication unit, acquire address information of the external device, and generate a client address list including the address information of the external device and address information of at least one of other external device connected to the electronic device, control the short-range communication unit to transmit the multimedia file and the client address list to the external device by using the address information of the external device. a display unit; a Near Field Communication, NFC, unit; a short-range communication unit; and a controller configured to: control the display unit to display a multimedia file; based on the electronic device being in contact with an external device to perform near field communication with the external device, control the NFC unit to deliver address information of the electronic device and file information of the multimedia file towards the external device, activate the short-range communication unit based on the address information and the file information of the multimedia file being sent, receive a connection request from the external device, based on a connection request from the external device being received, set the electronic device as a group owner, and connect the electronic device to the external device through the short-range communication unit, acquire address information of the external device, and generate a client address list including the address information of the external device and address information of at least one of other external device connected to the electronic device, control the short-range communication unit to transmit the multimedia file and the client address list to the external device by using the address information of the external device. control the display unit to display a multimedia file; based on the electronic device being in contact with an external device to perform near field communication with the external device, control the NFC unit to deliver address information of the electronic device and file information of the multimedia file towards the external device, activate the short-range communication unit based on the address information and the file information of the multimedia file being sent, receive a connection request from the external device, based on a connection request from the external device being received, set the electronic device as a group owner, and connect the electronic device to the external device through the short-range communication unit, acquire address information of the external device, and generate a client address list including the address information of the external device and address information of at least one of other external device connected to the electronic device, control the short-range communication unit to transmit the multimedia file and the client address list to the external device by using the address information of the external device.