For educational purposes only...
Scenario: My friend and I want to solo mine on 1 wallet. But, his computers are not on\in my LAN network.
The wallet has been set to server mode: -server
bitcoin.conf
rpcuser=user
rpcpassword=pass
server=1
cgminer settings: -o localhost:port -u user -p name
This works fine for solo mining on just my computer. But how can I change it so that he can connect to my Bitcoin wallet from another state which is obviously outside my LAN?