Connecting to Bitcoin wallet outside of LAN to 'Solo' Mine
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.