The only way to check if a server is reachable is to try to connect to it.
If you want to cancel the operation before itself can finish based on a timeout, just create a timer with that timeout and connect it to the network reply's abort() slot.
Also connect the downloadProgress signal of the reply to the timer's stop() slot to cancel the timer when data arrives.
Cheers,
_
Bookmarks