The following code

Qt Code:
  1. foreach (const QNetworkInterface &ni, QNetworkInterface::allInterfaces()) {
  2. if (!(ni.flags() & ni.IsLoopBack)){
  3. macName = ni.hardwareAddress(); // lets match & get our information for this device
  4. qDebug() << macName;
To copy to clipboard, switch view to plain text mode 

outputs

Qt Code:
  1. "00:1C:DF:93:1D:5D"
  2. "00:1C:DF:93:1D:5D"
  3. "00:23:AE:A8:26:FC" // this one being Local Area Connection
  4. "00:50:56:C0:00:01"
  5. "00:50:56:C0:00:08"
  6. "3E:9B:20:52:41:53"
  7. "3E:9B:20:52:41:53"
  8. "00:23:AE:A8:26:FC"
  9. "00:23:AE:A8:26:FC"
  10. "3E:9B:20:52:41:53"
  11. "3E:9B:20:52:41:53"
  12. "3E:9B:20:52:41:53"
  13. "3E:9B:20:52:41:53"
  14. "20:41:53:59:4E:FF"
  15. "00:00:00:00:00:00:00:00"
  16. "00:00:00:00:00:00:00:E0"
  17. "00:00:00:00:00:00:00:E0"
  18. "00:00:00:00:00:00:00:E0"
  19. "00:00:00:00:00:00:00:E0"
  20. "00:00:00:00:00:00:00:E0"
To copy to clipboard, switch view to plain text mode 

how can i filter threw the hardware addresses where QNetworkInterface::humanReadableName = local area connection and spit that one out only ?