isReachable in Java throws an IOException

If isReachable throws an IOException in Java, what is the right step to do and why?

The application, I believe, should halt the process and output the system message: the host is not accessible. Because isReachable throws an IOException, the host cannot be reached. But I’m not sure what the solution is. I would be grateful if you could assist me.

thank you very much

1 Like

Corresponding tweet for this thread:

Share link for this tweet.