Your server (listener) is using the SerialPort Service Class Id. Widcomm has built-in support for serial ports and thus it is getting the incoming connection. Either change to using a personal unique Service Class Id (e.g. from Guid.NewGuid), or maybe you can disable the Widcomm virtual COM port. But that latter might interfere with other things?
When your application is running we see the two SDP records:
recordCount: 2
1)
AttrId: 0x0000 -- ServiceRecordHandle
UInt32: 0x10000
AttrId: 0x0001 -- ServiceClassIdList
ElementSequence
Uuid16: 0x1101 -- SerialPort
AttrId: 0x0004 -- ProtocolDescriptorList
ElementSequence
ElementSequence
Uuid16: 0x100 -- L2CapProtocol
ElementSequence
Uuid16: 0x3 -- RFCommProtocol
UInt8: 0x1
( ( L2Cap ), ( Rfcomm, ChannelNumber=1 ) )
AttrId: 0x0005 -- BrowseGroupList
ElementSequence
Uuid16: 0x1002 -- PublicBrowseGroup
AttrId: 0x0006 -- LanguageBaseAttributeIdList
ElementSequence
UInt16: 0x656E
UInt16: 0x6A
UInt16: 0x100
AttrId: 0x0008 -- ServiceAvailability
UInt8: 0xFF
AttrId: 0x0009 -- BluetoothProfileDescriptorList
ElementSequence
ElementSequence
Uuid16: 0x1101 -- SerialPort
UInt16: 0x100
AttrId: 0x0100 -- ServiceName
TextString: [en] 'Bluetooth Serial Port'
----
2)
AttrId: 0x0000 -- ServiceRecordHandle
UInt32: 0x10009
AttrId: 0x0001 -- ServiceClassIdList
ElementSequence
Uuid16: 0x1101 -- SerialPort
AttrId: 0x0004 -- ProtocolDescriptorList
ElementSequence
ElementSequence
Uuid16: 0x100 -- L2CapProtocol
UInt16: 0x3
ElementSequence
Uuid16: 0x3 -- RFCommProtocol
UInt8: 0x1
( ( L2Cap, PSM=Rfcomm ), ( Rfcomm, ChannelNumber=1 ) )
AttrId: 0x0100
TextString (guessing UTF-8): 'PWAccessP'
Alan J. McFarlane
http://www.alanjmcf.me.uk/
Please follow-up in the newsgroup for the benefit of all.
Have I helped? Consider visiting my Amazon wishlist, see my homepage.