Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 167
  • Last Modified:

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?
0
geocoins-software
Asked:
geocoins-software
  • 3
  • 2
1 Solution
 
JoWickermanCommented:
HI,

Perform a ping to test connectivity.

ping microsoft.com

I used it once... Although it was in VB.

Hope this is useful.

Cheers,
0
 
geocoins-softwareAuthor Commented:
How about some code on how to do it?
0
 
ziolkoCommented:
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
JoWickermanCommented:
Well... VB code is:

My.Computer.Network.Ping("207.46.232.182")

Cheers
0
 
geocoins-softwareAuthor Commented:
well, im not looking for VB code.....and since this is a Delphi zone......enough said.
0
 
geocoins-softwareAuthor Commented:
I used InternetGetConnectedState - it works great - thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now