Determining if a client PC has an Internet connection
dave at pythonapocrypha.com
Mon Jan 24 05:17:09 CET 2005
> 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.).
More information about the Python-list