Re: Problems using Ping to validate Internet Connection

Giganews Newsgroups
Subject: Re: Problems using Ping to validate Internet Connection
Posted by:  Remy Lebeau (TeamB) (no.spam@no.spam.com)
Date: Tue, 26 Apr 2005

"Ove Bjerregaard" <tetaso…@firma.tele.dk> wrote in message
news:D5C72F148AC8E240tetaso…@firma.tele.dk...

> For now, I do this in two steps. First I ping the server to
> find out if the computer is there at all and second I try to
> connect to the InterBase server.

Get rid of the ping and just connect regardless.  If the connect fails, an
exception will be thrown that you can catch.

Pings aren't as useful as they used to be since firewalls and routers are
usually disabled from replying to ping requests at all.

Gambit

Replies

In response to

Problems using Ping to validate Internet Connection posted by Ove Bjerregaard on Tue, 26 Apr 2005