public int port() {
		int p = 9001;
		if (portbox.getText() != ""){
			try{
				p = Integer.parseInt(portbox.getText());
			}catch (Exception e){
				JOptionPane.showMessageDialog(null, "Given Port Incorrect");
			}
		}
		return p;
	}