public void connect() throws IOException{
		//Encrypt Text
		Keyinput = Check.UpKey(keybox.getText());
		if (Keyinput == "error"){
			//Exit Method On Error
			return;
		}
		//enable connection
		isrun = true;
		
		//start connection
		Message = sendbox.getText().toString();
		Encryption Encryption1 = new Encryption(Message, Keyinput);
		Encrypted = Encryption1.o;
		inter.run();
		indicator.setText("Encrypting Message");
	
		//Disable Button
		connectbutton.setEnabled(false);
		keybox.setEnabled(false);
		ipbox.setEnabled(false);
		portbox.setEnabled(false);
		
		//Enable send button
		sendbutton.setEnabled(true);
		disconnect.setEnabled(true);
		sendbox.setEnabled(true);
	}