0 votes

Couldn't achieve that without Hamachi or something similar, it only works on local network, not even typing the direct IP (That I can't get on Godot), it don't work. Am I missing something or it's not possible?

in Engine by (40 points)

Sounds to me as if you need to open ports on your firewall(s) to allow the connection.
I somewhat doubt that Godot has a built-in NAT punchthrough - it is quite an advanced topic and usually requires a server to "mediate" between two parties: https://keithjohnston.wordpress.com/2014/02/17/nat-punch-through-for-multiplayer-games/

You cannot "just" connect two people directly via UDP/TCP if they sit behind a firewall (which almost all people do).

Thanks for your reply, I'm exactly with that problem. So what I need is a NAT punch-through? My game is turn-based with just 2 players on it, and I don't have too much experience with servers, Godot's RPC would be perfect for me, but if I can't achieve this, what could I use instead? Would GET/POST controlled requests work or would this be worse?

Please log in or register to answer this question.

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 Frequently asked questions and 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 [email protected] with your username.