public boolean isAvailable() {
		boolean reachable = false;
		for (int i = 0; i < 10; i += 1) {
			if (reachable) {
				break;
			}
			Socket sock = new Socket();
			int port = 139;
			if (getType().equalsIgnoreCase("nfs")) {
				port = 111;
			}
			try {
				sock.connect(new InetSocketAddress(getIp(), port), 1000);
			} catch (IOException ex) {
			}

			reachable = sock.isConnected();

			try {
				sock.close();
			} catch (IOException e) {
			}
		}
		return reachable;
	}