Quantcast
Channel: Crunchify
Viewing all articles
Browse latest Browse all 1037

How to Implement your own InetAddress.isReachable(String address, int port, int timeout) method in Java?

$
0
0

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.


Viewing all articles
Browse latest Browse all 1037

Trending Articles