Search code examples
c#bluetoothserial-port

How to get OutGoing ComPort of bluetooth device in C#


I am working on a C# application. When i pair a bluetooth device with my PC, i get two Com Ports, i.e.

enter image description here

One of these ports is used for incoming connections and one for outgoing. I have to find the port which is used for outgoing connection. This information is present in the bluetooth seetings i.e.

enter image description here

My issue is that i have to find this outgoing port programmatically in C#. How can i get this info in C#.


Solution

  • I have managed to do this with the help of accepted answer of this question.