public void setUpConnection(String ipAddress, int portNumber) {
		try {
			connection = new Socket(ipAddress, portNumber);
			output = new ObjectOutputStream(connection.getOutputStream());
			output.flush();
			input = new ObjectInputStream(connection.getInputStream());
			System.out.println("Connection established with " + ipAddress + ", Port: " + portNumber);
		}
		catch(IOException ioException) {
			userInterface.displayErrorMessage("Error getting info input-output stream");
			closeConnection();
		}
	}