So basically im trying to make an onlione multiplayer game.
I already know how to do it locally, but i dont know how to do it online.
In my current understanding of networking, you connect to a client using tcp with an i.p. and port, and I think it only works when you are connected to LAN (i dont think that if i send my ip to my friend in a different network, i will be able to connect to him). I am confused to how to connect to someone through the internet and would love if someone explained to me how to do just that.