I would like the fastest and most accurate function boolean isReachable(String host, int port)
that passes the following JUnit tests under the conditions below. Tim
If you need to do this with a seriously large number of hosts in a very brief period of time, I'd consider using a tool like fping instead- shell out to exec it and parse the output when it comes back. fping runs a large number of parallel queries at once, so you could theoretically check a few thousand hosts in a minute (I think the limit is 4096?)