I think this is what you should be using:
https://heroiclabs.com/docs/gameplay-multiplayer-server-multiplayer/