Automatic internet reconnect with Java App

MoNkeY mAgIc

Simian Deformity
Hi,

I've written a small java App - which sends a request to a web sever (which then emails me my IP address). It does some other stuff as well but that's not important.

Using Cron it runs every 4 hours.

However if my Internet connection drops - it doesn't automatically reconnect when the App runs.

Is there a way of forcing reconnection?

Sorry if this is a dumb question but I'm a bit of a Noob to all this. :D

Cheers
 
Back
Top