View Full Version : Is internet connected
bunjee
22nd November 2009, 02:24
Hey guys,
From a Qt app,
is there a simple way to check if we have access to the internet?
Thanks.
wirasto
22nd November 2009, 02:45
Check google or other in port 80 :)
http://www.qtcentre.org/forum/f-qt-programming-2/t-check-network-connection-25426.html
bunjee
24th November 2009, 21:22
socket->connectToHost("hostName", portNumber);
if (socket->waitForConnected(1000)) qDebug("Connected!");
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.