I advise against using ping. I have my routers set so that ping is not returned. I send all ports to the local IP: 192.168.33.254 which does not exist. This is recommended by grc.com. The only open port is 80 (or whatever port you need) on a server.
I think the best idea is to download a web site page that you think will always be present like yahoo.com and examine it to make sure it is a real site and not 404 or some other error. ----- Original Message ----- From: "Andy Davies" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Thursday, June 29, 2006 1:04 AM Subject: Re: How To Know If an Internet Connection is Active Declare Integer InternetCheckConnection in Wininet.dll String Url, Long Flags, Long Reserved lnResult = InternetCheckConnection("http://leafe.com/",1,0) ?IIF(lnResult = 0,'NOT connected', 'Connected') && NOT connected * Doesn't work through [our] firewall * neither does: !ping leafe.com * wonder if it uses ping under the hood? Andrew Davies MBCS CITP - AndyD 8-)# ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. Please contact [EMAIL PROTECTED] with any queries. ********************************************************************** [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

