An electronic device, a user terminal, and a method of controlling the electronic device and the user terminal are provided. The electronic device includes a display, a communication interface, a memory comprising at least one instruction, and a processor configured to execute the at least one instruction, and the processor, by executing the at least one instruction, is configured to, based on anexternal user terminal being discovered through the communication interface, control the display to display a marker including at least one of a text or an image for guiding an operation of a user toestablish a communication connection with the external user terminal, based on authentication on the electronic device being performed by capturing the electronic apparatus outputting the marker by the external user terminal, receive a signal confirming authentication on the electronic apparatus from the external user terminal, and establish a communication connection with the external user terminal in response to the signal.