title: How to get only User interface Com port from list of ports?
body: <p>I am developing a C#.net app in which I have communication with a USB 3G modems Com port for sending and receiving messages.</p>
  
  <p>Below is my code that I am currently using for getting a list of ports:</p>
  
  <pre><code>string[] ports = SerialPort.GetPortNames();
  </code></pre>
  
  <p>Now I want to get only UI port from list of port, for example if 3G modem has two ports say for COM4 and COM6 in which first is Application interface port and another is UI port.</p>
  
  <p>How can I programmatically get the UI port?</p>