public Server(String[] args) throws WrongParameterCountException{
		if(args.length != 1) {
			throw new WrongParameterCountException();
		} else {
			this.tcpPort = Integer.parseInt(args[0]);
		}

		System.out.println("Starting Server.");

		try {
			serverSocket = new ServerSocket(tcpPort);
		} catch (IOException e) {
			System.out.println("Could not create socket!");
			exit();
		}



		serverStatus = true;

		serverTCPListenerThread = new ServerTCPListenerThread(serverSocket, this);
		serverTCPListenerThread.start();
		auctionCheckThread = new AuctionCheckThread(this);
		auctionCheckThread.start();
		
		lookupRMI();

		while(serverStatus) {
			while(in.hasNextLine() && serverStatus) {
				exit();
				return;
			}
		}
	}