title: Check service availability from java
body: <p>How can I check service using java? I found <a href="http://www.kodejava.org/examples/109.html" rel="nofollow">this article</a>, but it is only for checking hostname.</p>
  
  <p>My question is how can I check is service on port x running, ex: <code>myhostname:8080</code> or <code>myhostname:8099</code> , I might be running service n or p on those ports but it would be visible trough web if I do it manually, how can I achieve same effect in java?</p>