There are 5 bluetooth devices, 2 desktops & 3 cellphones.
Now one of the desktop is running a RFCOMM server and the 3 cellphones want to connect to this server as client.

But when I run the client on the cellphone a cellphone tries to connect to another cellphone rather then connecting with the server on the desktop.
How can I acheive such a thing where the cellphone only connects to the desktop and not the other devices ?

The server may run on any of the desktop on anytime. But it would run on only desktop at a time.

On my client side I run the following code:

discoveryAgent.startInquiry(DiscoveryAgent.GIAC, this);
public void inquiryCompleted(int discType)
{
uuidSet = new UUID[1];
uuidSet[0] = new UUID(0x0003);
discoveryAgent.searchServices(null,uuidSet,rtDevice,this);
}