[Tutor] How to check online status
mail at timgolden.me.uk
Mon Nov 3 17:08:02 CET 2008
> Dear fellow Pythonistas,
> is it possible to check with Python whether a computer is connected to the
> internet or not?
You've got several options. The simplest, cross-platform
solution is to connect a socket to a known port on a known
server with a timeout and see if it connects. But there
are ping-alike Python modules around if that's really
what you want:
> And how do I make my python scipts that use urllib to recognize the windows
> operating system proxy settings?
More information about the Tutor