Re: Detecting a internet connection

new topic     » goto parent     » topic index » view thread      » older message » newer message

>Does anyone how how to detect if a internet connection has been >established
>via a dial-up? How do you detect if it has been >disconnected?
>Greg Harris
>jeffery replied win95 autodetects......

i'm not so sure that would be always reliable...
if it is reliable, cool...
if not, i may have another solution...
ping.exe
it comes default on most win95 installs, just like
telnet.exe....
you could use system() combined with ping, pipe it
to an output file, and dissect the output file looking
for "destination not reachable"... what to ping tho?
the users Internet Service Provider... if that doesn't
ping then you can pretty much assume they -arent- online.
at first i was thinking about pinging some 'big' place
that is -ahem- "always" working...no such place...
the ISP is almost goof proof tho...
here's the catch:
proxies...
myself? i'm on a proxy thru another machine and then onto
the net, so ping doesnt do anything but ping the proxy
which may or may not be online... cant (so far) break
out of the proxy to "ping-thru" to the real host i want
to ping... and since *I* am the network administrator, :)
and me and myself have already talked about the proxy issue,
there is so far no solution... now the proxy machine can
ping anywhere it wants... so if i need pinging, i ask my
wife (the system adminstrator here) :) to ping from her machine
and that solves that without my catching migraines trying
to fix something here that really doesnt need fixing...
hope this helps--Hawke'

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu