Determining if a client PC has an Internet connection
Dave Brueck
dave at pythonapocrypha.com
Sun Jan 23 23:17:09 EST 2005
torment wrote:
[snip]
> Have you tried just parsing the output from the command "ipconfig"?
>
> It's pretty obvious from the output that might give you if a connection
> is availible.
It's tempting to use ipconfig's output, but the info it gives you is unreliable
- you can incorrectly infer the presence of an net connection when you don't
really have one (if you also run VMWare, if you have installed a loopback
adapter, if you have a static public IP, etc.).
-Dave
More information about the Python-list
mailing list