Let's say you have a wallet setup with one of alt currencies. In your .conf file you have:
rpcuser=1234
rpcpassword=securepass
rpcallowip=192.168.*.*
rpcport=8331
server=1
gen=0
Then you start the qt by running "sudo ./altcurency-qt -server", the wallet opens and all fine. Say you have 5 receiving addresses in that wallet.
Then you start your cgminer with usual:
./cgminer -u 1234 -psecurepass -o http://127.0.0.1:8331
Everything is running, cgminer trying to do generate a block. Now when the block is found, which address in the wallet will the reward go to??