You can use steam connection for example if you want to connect with your friends from your house over to their house. and there are many tutorials on the internet to guide you on how to achieve it.
As for android you can use google play to achieve that and on ios you can use game center and PSN on play station.
I guess so , when I used steam all I did was configuring my DefaultEngine.ini and installing steam and register an account , and then I followed the tutorials and packaged the game after that and tested it on two different pc with two different connections and two different steam accounts and it worked fine.