How to netplay with 2 gameshell?

I wanna play with my friend with GS.
Or with GS and PC.
I play in my room, and my friend play his room
mean different ip.
plz help

use a vpn, you and your friend be in the same network