An electronic device comprising: a communication circuit for Bluetooth low energy; at least one memory configured to store instructions; and at least one processor operatively coupled with the communication circuit, wherein the at least one processor is, when the instructions are executed, configured to: broadcast (510, 610, 710, 810) a first advertising packet via the communication circuit, receive (535, 645, 740, 820), via the communication circuit, a second advertising packet broadcast from a first external electronic device, the second advertising packet at least including a control command for media playable in the electronic device, transmit (540, 775, 830), in response to receiving the second advertising packet, a first signal for identifying whether the first external electronic device is included in a predetermined area from a second external electronic device, via the communication circuit through an established connection between the electronic device and the second external electronic device, to the second external electronic device, wherein the first external electronic device is distinct from the second external electronic device; receive (545, 780, 840), through the established connection, from the second external electronic device via the communication circuit, a second signal generated in response to the first signal, perform, in response to receiving the second signal indicating that the first external electronic device is included in the predetermined area via the communication circuit, a control command for the media, and broadcast (550, 785, 860), via the communication circuit to the first external electronic device, a third advertising packet for indicating that the control command for the media has been performed. a communication circuit for Bluetooth low energy; at least one memory configured to store instructions; and at least one processor operatively coupled with the communication circuit, wherein the at least one processor is, when the instructions are executed, configured to: broadcast (510, 610, 710, 810) a first advertising packet via the communication circuit, receive (535, 645, 740, 820), via the communication circuit, a second advertising packet broadcast from a first external electronic device, the second advertising packet at least including a control command for media playable in the electronic device, transmit (540, 775, 830), in response to receiving the second advertising packet, a first signal for identifying whether the first external electronic device is included in a predetermined area from a second external electronic device, via the communication circuit through an established connection between the electronic device and the second external electronic device, to the second external electronic device, wherein the first external electronic device is distinct from the second external electronic device; receive (545, 780, 840), through the established connection, from the second external electronic device via the communication circuit, a second signal generated in response to the first signal, perform, in response to receiving the second signal indicating that the first external electronic device is included in the predetermined area via the communication circuit, a control command for the media, and broadcast (550, 785, 860), via the communication circuit to the first external electronic device, a third advertising packet for indicating that the control command for the media has been performed. broadcast (510, 610, 710, 810) a first advertising packet via the communication circuit, receive (535, 645, 740, 820), via the communication circuit, a second advertising packet broadcast from a first external electronic device, the second advertising packet at least including a control command for media playable in the electronic device, transmit (540, 775, 830), in response to receiving the second advertising packet, a first signal for identifying whether the first external electronic device is included in a predetermined area from a second external electronic device, via the communication circuit through an established connection between the electronic device and the second external electronic device, to the second external electronic device, wherein the first external electronic device is distinct from the second external electronic device; receive (545, 780, 840), through the established connection, from the second external electronic device via the communication circuit, a second signal generated in response to the first signal, perform, in response to receiving the second signal indicating that the first external electronic device is included in the predetermined area via the communication circuit, a control command for the media, and broadcast (550, 785, 860), via the communication circuit to the first external electronic device, a third advertising packet for indicating that the control command for the media has been performed.