Connecting to Bitcoin wallet outside of LAN to 'Solo' Mine 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?
You just need to throw this into your bitcoin.conf
rpcallowip=1.1.1.34 where the allowed ip is your friends and also make sure the port isn't going to be blocked by the router.

Is it solo mining? When there is a second party it now becomes pooled mining.