you could set up a vpn connecting your device to his network, or vise versa. or maybe look into setting up your own server although setting up a server requires portforwarding which can be a problem. On school you can just try hosting a local game. this is also what you would do if you have set up a vpn.
I hope this helped.
Edit:
if my explanation din't help here ya go.