public void connect() throws ConnectionException, IOException {
		if(pause != null) {
			try {
				setInputStream(new FileInputStream(pause));
			}
			catch(IOException e) {
				throw new ConnectionException(e);
			}
		}
		if (serverConnection == null || serverConnection.isClosed()) {
			try {
				serverConnection = new ServerSocket(port);
			} 
			catch (BindException e) {
				throw new ConnectionException(e);
			}
		}
		connected = true;
		engine = new Thread(this, getClass().getName() + " Engine");
		engine.start();
	}