When I'm using e.g. PuTTY and my connection gets lost (or when I do a manual
ipconfig /release on Windows), it responds directly and notifies my connection was lost.
I want to create a Java program which monitors my Internet connection (to some reliable server), to log the date/times when my internet fails.
I tried use the
Socket.isConnected() method but that will just forever return "true". How can I do this in Java?