public void startRunning() {
		try {
			server = new ServerSocket(6789, 5);
			while(true) {
				try {
					waitForConnection();
					setupStreams();
					whileChatting();
				}catch(EOFException eofException) {
					showMessage("Server ended the connection!");
				}finally {
					closeCrap();
					chatWindow.setText("");
				}
			}
		}catch(IOException ioException) {
			ioException.printStackTrace();
		}
	}