Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (133)
games submitted by our members
Games in WIP (603)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Lobby/Match hosting behind routers  (Read 2491 times)
0 Members and 1 Guest are viewing this topic.
Offline Memoryz

Senior Newbie


Exp: 2 years



« Posted 2014-02-21 03:23:04 »

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.
Offline HeroesGraveDev

JGO Kernel


Medals: 310
Projects: 11
Exp: 3 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #1 - Posted 2014-02-21 04:26:14 »

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?

Online Riven
« League of Dukes »

« JGO Overlord »


Medals: 844
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #2 - Posted 2014-02-21 16:35:13 »

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.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Memoryz

Senior Newbie


Exp: 2 years



« Reply #3 - Posted 2014-02-21 20:50:45 »

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.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

rwatson462 (37 views)
2014-12-15 09:26:44

Mr.CodeIt (31 views)
2014-12-14 19:50:38

BurntPizza (62 views)
2014-12-09 22:41:13

BurntPizza (99 views)
2014-12-08 04:46:31

JscottyBieshaar (60 views)
2014-12-05 12:39:02

SHC (74 views)
2014-12-03 16:27:13

CopyableCougar4 (77 views)
2014-11-29 21:32:03

toopeicgaming1999 (138 views)
2014-11-26 15:22:04

toopeicgaming1999 (127 views)
2014-11-26 15:20:36

toopeicgaming1999 (38 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!