code: public static boolean available(final String host, final int port)
  	{
  		Socket socket = null;
  		try
  		{
  			socket = newSocket(host, port);
  			return false;
  		}
  		catch (final IOException ignored)
  		{
  			return true;
  		}
  		finally
  		{
  			if (!closeClientSocket(socket))
  			{
  				LOGGER.error("Socket could not be closed on host " + host + " on port " + port);
  			}
  		}
  	}
docs: Checks if the given port at the given host is available. Note: Socket will be closed after
  the test.
  
  @param host
  the host name.
  @param port
  the port number.
  @return If the given port at the given host is available true, otherwise false.