The object of the invention is a method where a first communications device (10) and a second communications device (20), previously unknown to each other, communicate with each other wirelessly using short-range RF technology, said second communications device being at a certain moment of time in a first mode where the address of said second communications device is determinable by means of an inquiry wirelessly sent to it. In the method, the first communications device (10) sends (31) a first message in order to determine the address of said second communications device, said second communications device (20) receives (32) the first message, and said second communications device (20) generates and sends (33) to the first communications device a second message in response to the first message, the second message containing the address of said second communications device. In the method, a connection establishment process (35-38) is executed to establish a connection between the first communications device and said second communications device. During the connection establishment process, or in response to successful completion of the connection establishment process, at least one of said first and second communications devices (10, 20) switches (40) from said first mode into a second mode, in which second mode, the communications device that has switched into said second mode does not respond to messages arriving at it which have been sent to discover the address of the communications device that has switched into said second mode.