QList<QNetworkInterface> list = QNetworkInterface::allInterfaces();
foreach(QNetworkInterface i, list) {
qDebug() << i;
}