How to implement P2P Multiplayer?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Zeero
:warning: Old Version Published before Godot 3 was released.

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?

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: NAT Punch-through for Multiplayer Games | Keith Johnston

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

TheSHEEEP | 2018-01-09 12:30

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?

Zeero | 2018-01-09 17:16