Lobby/Match hosting behind routers

Hello,

I was wondering if anyone had any success in implementing a way for a person to host a match/lobby behind a router without having to manually portforward? I’m not looking to have all user connections be routed through a server, but rather let the gamer host their lobby on their own internet, and have people connect directly to the lobby that they would be aware of through an HTTP-based matchmaking system.

Is there any way or anyone that can guide me on how to port hole punch (I believe is what it’s called?), I’m using Kryonet for my networking.

So, to clarify, the server takes requests, forwards them to the host client, and then the host client sends back a response to the server which then broadcasts it to the other clients?

Or are you looking to just have a LAN server?

For UDP punch through, you still need a public server to tell both parties (which are both behind a router) their respective public IPs. Traffic among clients won’t be routed through this server, but it has to run some ‘match making’ logic.

This is exactly what I’m looking forward to doing, are there any resources I can look at for getting a system like this working? I am not sure how to create it on the client side and get them to connect to the hosting party when they are both behind a router.