code: public boolean connect(){
  		try {
  			sock = new Socket(host, port);
  			in = new BufferedReader(new InputStreamReader(
  					sock.getInputStream(), "UTF-8"));
  			out = new BufferedWriter(new OutputStreamWriter(
  					sock.getOutputStream(), "UTF-8"));
  			return true;
  		}
  		catch (Exception e){
  			System.out.println(e.getMessage());
  			return false;
  		}
  	}
docs: Connect.
  
  @return true, if successful