An electronic device comprising: a housing; a universal serial bus, USB, connector exposed through a portion of the housing and comprising a first port for connection to a first external device ; multiple second ports electrically connected to the first port; a communication module configured to provide multiple logical wireless sessions ; and a control circuit electrically connected to the multiple second ports and the communication module, wherein the control circuit selects a second port in an inactive state from among the multiple second ports based on an establishment of a new logical wireless session with a second external device through the communication module, activates the selected second port, provides a communication path between the activated second port and the new logical wireless session in order to perform data communication between the first external device and the second external device, converts data received through the activated second port into a first format corresponding to the new logical wireless session, and transmits the first format converted data to the second external device via the communication module, the first format being a format other than a USB format, wherein the control circuit pulls up a data signal line of one of the second ports so as to select the one of the second ports, and wherein the control circuit, when the new logical wireless session of the second external device is disconnected, pulls down the data signal line of one of the second ports to deselect the second port corresponding to the disconnected second external device so as to block the communication path. a housing; a universal serial bus, USB, connector exposed through a portion of the housing and comprising a first port for connection to a first external device ; multiple second ports electrically connected to the first port; a communication module configured to provide multiple logical wireless sessions ; and a control circuit electrically connected to the multiple second ports and the communication module, wherein the control circuit selects a second port in an inactive state from among the multiple second ports based on an establishment of a new logical wireless session with a second external device through the communication module, activates the selected second port, provides a communication path between the activated second port and the new logical wireless session in order to perform data communication between the first external device and the second external device, converts data received through the activated second port into a first format corresponding to the new logical wireless session, and transmits the first format converted data to the second external device via the communication module, the first format being a format other than a USB format, wherein the control circuit pulls up a data signal line of one of the second ports so as to select the one of the second ports, and wherein the control circuit, when the new logical wireless session of the second external device is disconnected, pulls down the data signal line of one of the second ports to deselect the second port corresponding to the disconnected second external device so as to block the communication path. <EOS>