geocoins-software
asked on
Is there an internet connection
I would like to add code to my application to test whether there is an active internet connection or not.
My application does some internet related functionality and I want to be sure that there is a connection prior to executing this functionality.
I can find lots of routines...but which is the best method?
My application does some internet related functionality and I want to be sure that there is a connection prior to executing this functionality.
I can find lots of routines...but which is the best method?
ASKER
How about some code on how to do it?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Well... VB code is:
My.Computer.Network.Ping(" 207.46.232 .182")
Cheers
My.Computer.Network.Ping("
Cheers
ASKER
well, im not looking for VB code.....and since this is a Delphi zone......enough said.
ASKER
I used InternetGetConnectedState - it works great - thanks!
Perform a ping to test connectivity.
ping microsoft.com
I used it once... Although it was in VB.
Hope this is useful.
Cheers,