develooper Front page | perl.beginners | Postings from January 2002

Re[2]: Computer connected to the internet?

Maxim Berlin
January 4, 2002 09:38
Re[2]: Computer connected to the internet?
Message ID:
Hello Gary,

Friday, January 04, 2002, Gary Hawkins <> wrote:

>> GH> How can I check whether the system is connected?

>> your OS? and your connection type?

GH> Well, everything in the world preferably (I'm only asking for the world), if
GH> others are going to be able to run it, but W2K and DSL for humble starters.

GH> Maybe check whether a particular port is open?
unfortunatelly, there is no simple and universal answer. providers and
administrators does many specific things, which valid only for their
clients. for example, for a typical client it's enough to make an http
protocol up and running.
second, your "connected" is a very common thing. is your system
connected, if your connect to provider is ok, but provider's network
lies down? or provider lost connection to europe or US?
basically, take a look at modules at

Things, which shows you, that system is NOT connected:
1. you can not reach your default gateway
2. you can not operate with your provider's DNS server(s)
addresses of gateway and DNS servers you can obtain by running
'ipconfig /all' command on Win* boxes.

Best wishes,
 Maxim                   Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About