An electronic device comprising: a communication interface; a memory storing one or more instructions; and a processor (115, 180, 181) configured to execute the one or more instructions stored in the memory to: acquire access point, AP, connection information of the electronic device comprising information about a wireless connection between the electronic device and an AP, and Bluetooth, BT, connection information of the electronic device comprising information about a connection between the electronic device and a Bluetooth device, receive, from a peer device attempting to establish a peer-to-peer, P2P, connection to the electronic device, AP connection information of the peer device comprising information about a wireless connection between the peer device and an AP, receive BT connection information of the peer device comprising information about a connection between the peer device and a Bluetooth device from the peer device, wherein the AP connection information of the peer device and the BT connection information of the peer device are within a message received from the peer device for a P2P search or connection request, determine a P2P operating channel between the electronic device and the peer device based on the AP connection information of the electronic device, the BT connection information of the electronic device, the AP connection information of the peer device, and the BT connection information of the peer device, and establish a P2P connection between the electronic device and the peer device according to the determined P2P operating channel. a communication interface; a memory storing one or more instructions; and a processor (115, 180, 181) configured to execute the one or more instructions stored in the memory to: acquire access point, AP, connection information of the electronic device comprising information about a wireless connection between the electronic device and an AP, and Bluetooth, BT, connection information of the electronic device comprising information about a connection between the electronic device and a Bluetooth device, receive, from a peer device attempting to establish a peer-to-peer, P2P, connection to the electronic device, AP connection information of the peer device comprising information about a wireless connection between the peer device and an AP, receive BT connection information of the peer device comprising information about a connection between the peer device and a Bluetooth device from the peer device, wherein the AP connection information of the peer device and the BT connection information of the peer device are within a message received from the peer device for a P2P search or connection request, determine a P2P operating channel between the electronic device and the peer device based on the AP connection information of the electronic device, the BT connection information of the electronic device, the AP connection information of the peer device, and the BT connection information of the peer device, and establish a P2P connection between the electronic device and the peer device according to the determined P2P operating channel. acquire access point, AP, connection information of the electronic device comprising information about a wireless connection between the electronic device and an AP, and Bluetooth, BT, connection information of the electronic device comprising information about a connection between the electronic device and a Bluetooth device, receive, from a peer device attempting to establish a peer-to-peer, P2P, connection to the electronic device, AP connection information of the peer device comprising information about a wireless connection between the peer device and an AP, receive BT connection information of the peer device comprising information about a connection between the peer device and a Bluetooth device from the peer device, wherein the AP connection information of the peer device and the BT connection information of the peer device are within a message received from the peer device for a P2P search or connection request, determine a P2P operating channel between the electronic device and the peer device based on the AP connection information of the electronic device, the BT connection information of the electronic device, the AP connection information of the peer device, and the BT connection information of the peer device, and establish a P2P connection between the electronic device and the peer device according to the determined P2P operating channel.