[Kryonet] P2P through the server?

DISCLAIMER: I’m aware that Kryonet is Server/Client based.

Is there any way I can have 1 client/peer talk to another using the server?

When they connect to the server if someone else doesn’t have a client/peer you get assigned to them and the game starts. The game would only communicate with the client they were assigned to using the server as the middle man.

That’s what I’m going for.

I’m assuming I can achieve this through having remote servers on the client machine that connect to the main server when you first start up the game but I’d like to cut out the remote server part.

Thanks,
Slyntax

Client A can send a message to the server, then the server could send the message to client B.

Read this post, went and checked Server methods and sure enough, the method I needed was there all along lol.

Last night was rough…