An electronic device comprising: a communication module configured to transmit and receive data through wireless communication; and a controller configured to: search for a plurality of other electronic devices through the communication module; differently put a weight value on at least one predefined condition selected from: received signal strengths for the plurality of other electronic devices, a transmitted and received data error rate with the plurality of other electronic devices, a distance with the plurality of other electronic devices, a Quality of Service (QoS) with the plurality of other electronic devices, whether the plurality of other electronic devices move, whether the electronic device itself moves, and a history of previous communication connections, according to a kind of a currently activated application; and select at least one of the plurality of other electronic devices, to establish a communication channel with, based on the weight value of the at least one predefined condition, or determine a communication connection order to connect each of the other electronic devices based on the weight value of the at least one predefined condition. a communication module configured to transmit and receive data through wireless communication; and a controller configured to: search for a plurality of other electronic devices through the communication module; differently put a weight value on at least one predefined condition selected from: received signal strengths for the plurality of other electronic devices, a transmitted and received data error rate with the plurality of other electronic devices, a distance with the plurality of other electronic devices, a Quality of Service (QoS) with the plurality of other electronic devices, whether the plurality of other electronic devices move, whether the electronic device itself moves, and a history of previous communication connections, according to a kind of a currently activated application; and select at least one of the plurality of other electronic devices, to establish a communication channel with, based on the weight value of the at least one predefined condition, or determine a communication connection order to connect each of the other electronic devices based on the weight value of the at least one predefined condition. search for a plurality of other electronic devices through the communication module; differently put a weight value on at least one predefined condition selected from: received signal strengths for the plurality of other electronic devices, a transmitted and received data error rate with the plurality of other electronic devices, a distance with the plurality of other electronic devices, a Quality of Service (QoS) with the plurality of other electronic devices, whether the plurality of other electronic devices move, whether the electronic device itself moves, and a history of previous communication connections, according to a kind of a currently activated application; and select at least one of the plurality of other electronic devices, to establish a communication channel with, based on the weight value of the at least one predefined condition, or determine a communication connection order to connect each of the other electronic devices based on the weight value of the at least one predefined condition.