That's a pretty broad question.
In general, each side needs a kinematicBody which the client can control, and another "dummy" one, which moves only by the position received from the other side.
Note that multiplayer is more complex than a single-player game, and would require some work to look and feel good.
I'd suggest watching the following series, which explains the topic extremely well.
Good luck with the game!