Registered Member
|
Hello,
To know if my computer is connected on a network, I use the function status() of Solid::Networking. But if the computer is connected, how can I know if Internet is available? Is there a sure way to know if Internet is available? Thank you for your answer. |
Administrator
|
Solid is only aware of the computer's networked state, and doesn't know of it's internet connectivity unfortunately.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
I found a way but it not very reliable: I use QHostInfo.
It is not reliable because if I use it just after the connection, sometimes DNS have not been updated and it returns me an error (host not found). And if the domain I have queried is no more available, I get the same error. |
Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]