Hi,
Im using Qt 5.5 in Windows, i have a program that shows the ff:
IP ADDRESS - "10.24.119.22"
WIFI CONNECTION - "10.24.200.39"
using this QT codes
QString qstr
= info.
localDomainName();
qDebug() << qstr;
for(int nIter=0; nIter<list.count(); nIter++)
{
if(!list[nIter].isLoopback())
qDebug() << list[nIter].toString();
}
QList<QHostAddress> list = QNetworkInterface::allAddresses();
QHostInfo info;
QString qstr = info.localDomainName();
qDebug() << qstr;
for(int nIter=0; nIter<list.count(); nIter++)
{
if(!list[nIter].isLoopback())
if (list[nIter].protocol() == QAbstractSocket::IPv4Protocol )
qDebug() << list[nIter].toString();
}
To copy to clipboard, switch view to plain text mode
is there a way that instead of showing the "address" the project will show the "Access Point Name" of the WLAN?
can somebody help me with this.
Thank you
Bookmarks