In Java there are multiple ways to check ping and port check. You could use system default’s ping command, Java’s native method InetAddress utility, HttpURLConnection and some more. In production or your testing environment, if you want to perform multiple port checks let’s say hundreds of checks at the same time then sometimes InetAddress.isReachable() method...
Read Article
The post How to Implement your own InetAddress.isReachable(String address, int port, int timeout) method in Java? appeared first on Crunchify.