Hi, I have problem with ip address.
How can i get current ip address on my pc? I tried used this code:
qDebug() << ifObj;
QHostInfo info;
QNetworkInterface ifObj = QNetworkInterface::interfaceFromName(info.hostName());
qDebug() << ifObj;
To copy to clipboard, switch view to plain text mode
It was returned:
QNetworkInterface( name = "", hardware address = "", flags = , entrise = () )
To copy to clipboard, switch view to plain text mode
also I used function: QNetworkAddressEntry::ip () , but without results.
So, I wait for yours propositions to solve my problem.
Bookmarks