public int setUpConnection(int portNumber) {
		try {
			server = new ServerSocket(portNumber);
		} 
		catch(IOException ioException) {			
			System.err.println("Error setting up server connection.");
			return CONNECTION_ERROR;
		}
		return portNumber;
	}