For a custom service connection between two programs, see the "General Bluetooth connections" section in the user guide. One device running a BluetoothListener and the other a BluetoothClient. Use a custom Service Class ID, like the below, which is then used by server and client. :-)
Shared ReadOnly MyServiceUuid As Guid = New Guid("{00112233-4455-6677-8899-aabbccddeeff}")
If you need any more explanation let us know.