A method carried out by a second node in a wireless communication system including a first node and the second node , the method comprising: receiving , from the first node , first discovery information including awareness information for requesting a registration of the first node, hop information indicating a hop limit corresponding to a number of available relays of the first discovery information, and indication information indicating whether to allow a relay of the first discovery information to other neighbor nodes; displaying a first user interface, UI , for determining whether to register the first node according to the awareness information; in response to detecting a first user input for registering the first node on the first UI , transmitting , to the first node, a response message for indicating that the second node registers the first node; determining whether the indication information indicates allowance of the relay; if the indication information indicates the allowance of the relay, displaying (1540, 1616, 1626 1714, 2024) a second UI for determining whether to transmit the first discovery information to a third node neighboring the second node; in response to detecting a second user input for relaying the first discovery information as second discovery information on the displayed second UI and the hop limit being greater than or equal to one , generating the second discovery information based on the first discovery information; broadcasting the generated second discovery information to the third node ; if the indication information does not indicate the allowance of the relay , discarding the received first discovery information. receiving , from the first node , first discovery information including awareness information for requesting a registration of the first node, hop information indicating a hop limit corresponding to a number of available relays of the first discovery information, and indication information indicating whether to allow a relay of the first discovery information to other neighbor nodes; displaying a first user interface, UI , for determining whether to register the first node according to the awareness information; in response to detecting a first user input for registering the first node on the first UI , transmitting , to the first node, a response message for indicating that the second node registers the first node; determining whether the indication information indicates allowance of the relay; if the indication information indicates the allowance of the relay, displaying (1540, 1616, 1626 1714, 2024) a second UI for determining whether to transmit the first discovery information to a third node neighboring the second node; in response to detecting a second user input for relaying the first discovery information as second discovery information on the displayed second UI and the hop limit being greater than or equal to one , generating the second discovery information based on the first discovery information; broadcasting the generated second discovery information to the third node ; if the indication information does not indicate the allowance of the relay , discarding the received first discovery information. <EOS>