An electronic device (101, 210) comprising: a communication circuit; a display; a memory; and at least one processor operably connected to the communication circuit, the display, and the memory, wherein the at least one processor is configured to: identify a first network connection between the electronic device and a first external electronic device using the communication circuit; identify a second external electronic device while the first network connection between the electronic device and a first external electronic device is maintained; identify the state of the first electronic device entering into a vehicle comprising the second external electronic device; transmit, to the first external electronic device, information that the electronic device has entered into the vehicle comprising the second external electronic device; in response to the identification of the second external electronic device, control the display to display a user interface, UI, for connecting the first external electronic device and the second external electronic device; and in response to an identification of an input in the UI, control the electronic device to transmit, to the second external electronic device, information at least partially based on the first network connection and usable for establishing a second network connection between the first external electronic device and the second external electronic device. a communication circuit; a display; a memory; and at least one processor operably connected to the communication circuit, the display, and the memory, wherein the at least one processor is configured to: identify a first network connection between the electronic device and a first external electronic device using the communication circuit; identify a second external electronic device while the first network connection between the electronic device and a first external electronic device is maintained; identify the state of the first electronic device entering into a vehicle comprising the second external electronic device; transmit, to the first external electronic device, information that the electronic device has entered into the vehicle comprising the second external electronic device; in response to the identification of the second external electronic device, control the display to display a user interface, UI, for connecting the first external electronic device and the second external electronic device; and in response to an identification of an input in the UI, control the electronic device to transmit, to the second external electronic device, information at least partially based on the first network connection and usable for establishing a second network connection between the first external electronic device and the second external electronic device. identify a first network connection between the electronic device and a first external electronic device using the communication circuit; identify a second external electronic device while the first network connection between the electronic device and a first external electronic device is maintained; identify the state of the first electronic device entering into a vehicle comprising the second external electronic device; transmit, to the first external electronic device, information that the electronic device has entered into the vehicle comprising the second external electronic device; in response to the identification of the second external electronic device, control the display to display a user interface, UI, for connecting the first external electronic device and the second external electronic device; and in response to an identification of an input in the UI, control the electronic device to transmit, to the second external electronic device, information at least partially based on the first network connection and usable for establishing a second network connection between the first external electronic device and the second external electronic device.