Question

Locked

How to check internet connection through java program

By jaga.mcaproj ·
hi,
I am currently doing a project in the area of web service.In this I have to access the service when connected to the internet.
But i like to create this service automatic. I need a program to indicate whether connection available or not and always it has to be in running state. when connection available my function automatically invoke the service.

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

You can check for IP information

by Slayer_ In reply to How to check internet con ...

Or you can try and ping a website through code, or simply try connecting to the web service, if connection fails, then internet is not available.

Collapse -

How to check internet connection through java program

by jaga.mcaproj In reply to You can check for IP info ...

i tried for IP address. if my system in offline then it through an exception and closed the program.
but i want the program run continously even the system in offline.

Back to Software Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums