0 votes

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.

in Engine by (439 points)

1 Answer

0 votes

Im also not fully sure, but by sharing your global ip address (not the local one) your should be able to connect already.

by (128 points)

is there a way to get the global ip inside of godot? ill try this with my friend and we'll se if that'll work. thanks!

ok, so i tried doing that, and when i get my phone and my computer public ip, both of them are the same. how do i connect to one of them only?

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.