An electronic device comprising: a communication module ; a memory ; and a processor operatively connected to one of the communication module and the memory, wherein the processor is configured to: establish a first network connection with an external device via the communication module through a first network, while the electronic device is connected to the external device , broadcast device information associated with the external device through a second network, transmit connection information associated with the external device to an external electronic device transmitting a request to establish a second network connection with the external device through the second network, change a configuration value to release of the first network connection with the external device in the first network, release the first network connection with the external device based on the changed configuration value, and control a Bluetooth controller to not process a reconnection message received from the external device after the first network connection with the external device is released, wherein the first network is a Bluetooth network, and the second network is a network other than the Bluetooth network. a communication module ; a memory ; and a processor operatively connected to one of the communication module and the memory, wherein the processor is configured to: establish a first network connection with an external device via the communication module through a first network, while the electronic device is connected to the external device , broadcast device information associated with the external device through a second network, transmit connection information associated with the external device to an external electronic device transmitting a request to establish a second network connection with the external device through the second network, change a configuration value to release of the first network connection with the external device in the first network, release the first network connection with the external device based on the changed configuration value, and control a Bluetooth controller to not process a reconnection message received from the external device after the first network connection with the external device is released, wherein the first network is a Bluetooth network, and the second network is a network other than the Bluetooth network. establish a first network connection with an external device via the communication module through a first network, while the electronic device is connected to the external device , broadcast device information associated with the external device through a second network, transmit connection information associated with the external device to an external electronic device transmitting a request to establish a second network connection with the external device through the second network, change a configuration value to release of the first network connection with the external device in the first network, release the first network connection with the external device based on the changed configuration value, and control a Bluetooth controller to not process a reconnection message received from the external device after the first network connection with the external device is released, wherein the first network is a Bluetooth network, and the second network is a network other than the Bluetooth network. <EOS>