Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to find which network interface is up in Qt
adnan last edited by
Suppose i have two network cards one for lan and other for wlan, How can i find the name of card which is connected to internet. like eth0 or eth1.
@ QNetworkInterface netInterface;
interface = netInterface.name();@
How to initialize netInterface, so that it returns the correct name