How to find which network interface is up in Qt
General and Desktop
1
Posts
1
Posters
1.0k
Views
1
Watching
-
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