in reply to Network or no network???... That is the question!
"Network is connected" can over a lot of ground, and diagnosing the various ways that a network can be "down" can be difficult. If you constraint your requirements to mean "can I connect to the outside world," the problem gets simpler. Merely try to open a socket to a known IP address/port. Say, to a known DNS server. If you can't reach the DNS server, the DNS server itself could be down, but more likely the problem is with cables/routers/whatever.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Network or no network???... That is the question!
by atcroft (Abbot) on Jun 30, 2002 at 18:02 UTC | |
by dws (Chancellor) on Jun 30, 2002 at 18:06 UTC |