A portable electronic device comprising: a wireless communication interface; a memory; a display; and an application processor electrically connected to the communication interface, the memory, and the display, wherein the memory stores instructions that, when executed by the application processor, cause the portable electronic device to: acquire information on a first external electronic device; access, through the wireless communication interface, a server that stores a software program related to the first external electronic device, based on at least a portion of the information on the first external electronic device; receive at least a portion of the software program associated with the first external electronic device, from the server, through the wireless communication interface; install, on the portable electronic device, the at least a portion of the software program received from the server; transmit at least one part of the received at least a portion of the software program, to a control device, through the wireless communication interface; and provide a user interface on the display, using the installed at least a portion of the software program, and wherein the user interface is configured to receive a user input for the control device to perform an operation associated with the first external electronic device. a wireless communication interface; a memory; a display; and an application processor electrically connected to the communication interface, the memory, and the display, wherein the memory stores instructions that, when executed by the application processor, cause the portable electronic device to: acquire information on a first external electronic device; access, through the wireless communication interface, a server that stores a software program related to the first external electronic device, based on at least a portion of the information on the first external electronic device; receive at least a portion of the software program associated with the first external electronic device, from the server, through the wireless communication interface; install, on the portable electronic device, the at least a portion of the software program received from the server; transmit at least one part of the received at least a portion of the software program, to a control device, through the wireless communication interface; and provide a user interface on the display, using the installed at least a portion of the software program, and acquire information on a first external electronic device; access, through the wireless communication interface, a server that stores a software program related to the first external electronic device, based on at least a portion of the information on the first external electronic device; receive at least a portion of the software program associated with the first external electronic device, from the server, through the wireless communication interface; install, on the portable electronic device, the at least a portion of the software program received from the server; transmit at least one part of the received at least a portion of the software program, to a control device, through the wireless communication interface; and provide a user interface on the display, using the installed at least a portion of the software program, and wherein the user interface is configured to receive a user input for the control device to perform an operation associated with the first external electronic device.