Here is a sample from one of my config files that I use for solo mining. For example, if you want to mine crazycoin, this would be in your ~/.crazycoin/crazycoin.conf file. You would need to run the crazycoind program and let it fully sync before you can mine to this server as a host. So, I normally would have the crazycoin program running, full blockchain synced, on the same device that my mining machine is connected to.
~/crazycoin/crazycoin.conf:
server=1
rpcuser=crazycoinrpc
rpcpassword=longstringoflettersandnumbershere_couldbeanything
rcpallowip=127.0.0.1
rpcport=65564
port=65565
rpcconnect=127.0.0.1
So, then you would set up CGMiner with a string something like this:
cgminer -o
http://127.0.0.1:65564 -u crazycoinrpc -p longstringoflettersandnumbershere_couldbeanything
On windows, the conf file would likely be under appdata/Roaming/crazycoin, I think.
Hope this helps, cheers~