Possible to use RPC with PacketPeerUDP?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By dkenshu

Because I want to use a non-Godot application to connect 2 players together in a 2 player turn-based game, I am attempting to use PacketPeerUDP for networking. I also want to use RPC to make the game move. However, RPC apparently needs the MultiPlayer API networking to set a peer for RPC to work

Is it possible to use RPC and PacketPeerUDP together, and if so, how? Many thanks for any clues.

I believe the answer is no, because RPC needs a NetworkedMultiplayerPeer and you can’t bolt one of those onto PacketPeerUDP. As implied by High-level multiplayer — Godot Engine (3.2) documentation in English under Mid-Level abstraction.

So this leads to the goal question: how to implement a peer connection between 2 smartphones thru the network? Best I can tell, some kind of relay server is easiest. But relay what?

dkenshu | 2020-07-10 13:03