A home network and a corporate or military network are much different. Your friends' home network probably has no firewall running on it so all ports are allowed. It's fairly common for corporate networks to whitelist ports and in that case you will need to explicitly open them up or set up forwarding (per Apple's advice).