"Nikola Bucic" <ni**********@gmail.com> wrote in message
news:11*********************@g49g2000cwa.googlegro ups.com...
it's not important whether I'm on server or on client side. I just want
to have constantly monitoring over internet connection and when my PC
become online run some code
"Internet connection" is very hard to define. You can be connected over LAN,
through ethernet. You may have dial-up connection, wireless, DSL or
something else. Even if your ethernet interface is up, that does not mean
that you can connect to internet. There may be firewalls that restrict
access (totally or to some services). IMHO, if you need to connect to some
server to do some work, don't check for internet connection, check for
servers availability. Try to connect and if it works, it works :)
Regards,
Goran