On Tue, 27 Jul 2010 17:58:02 -0400, Charles Dye
<> wrote:
|---Quote (Originally by Steve Fábián)---
| The problem with testing internet availability with PING or any other check against a single URL is that the specific URL may be down. OTOH I can ping many sites, and on detecting the first response declare that I am connected.
|---End Quote---
Do a TRACERT (to anywhere) and note the first (real/routable/outside
your home) IP along the route. Use that as the target of a PING. If
that one is down, it's a good bet you don't have a (usable) internet
connection. For example,
Code:
v:\> tracert -d -h 2 ilucky
Tracing route to lucky.syr.edu [128.230.13.36]
over a maximum of 2 hops:
1 7 ms 5 ms 5 ms 10.236.192.1
2 15 ms 11 ms 12 ms 24.92.246.125
Trace complete.
v:\> echo %@ping[24.92.246.125]
12
That's no guarantee that you can reach anything on the greater
internet but is does indicate that there's no problem at your end.