Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  minimum hosting requirement for a two-player game  (Read 514 times)
0 Members and 2 Guests are viewing this topic.
Offline philfrei

Sr. Member
**

Posts: 495
Medals: 24



« on: 2012-01-22 22:59:06 »

What does one need to host a 2-player game? I pay for an inexpensive website where I can post html files containing jars. Is that enough or does one need a site where Servlets are supported?

I have done a bit of Servlet programming on my home computer but home is a dynamic IP, and not anything anyone else can view.

"Life is short, art long, opportunity fleeting, experience treacherous, judgment difficult." Smiley
Offline philfrei

Sr. Member
**

Posts: 495
Medals: 24



« Reply #1 on: 2012-01-22 23:00:36 »

Ah, just found the Kryonet resource. I will read up on this.

"Life is short, art long, opportunity fleeting, experience treacherous, judgment difficult." Smiley
Offline ra4king

JGO Kernel
*****

Posts: 3158
Medals: 196


I'm the King!


« Reply #2 on: 2012-01-22 23:52:27 »

This mostly depends on what technology you want to use. Servlets are HTTP. Those are suitable for small non-real time games. For real time networked games, you will mostly need a dedicated computer/server and use sockets. Kryonet is an excellent choice for this.

If you want to use a computer at your home yet have a dynamic IP, I suggest you get a free subdomain name from DynDNS and check if your router supports DynamicDNS.

Games published by our own members! Go get 'em!
Offline princec
« League of Dukes »

JGO Kernel
*****

Posts: 8089
Medals: 96


Eh? Who? What? ... Me?


« Reply #3 on: 2012-01-23 05:05:12 »

How about a peer-to-peer solution?

Cas Smiley

Offline Riven
« League of Dukes »

JGO Kernel
*****

Posts: 5870
Medals: 255


Hand over your head.


« Reply #4 on: 2012-01-23 05:51:09 »

How about a peer-to-peer solution?
Solving NAT-punch-through is a bit more advanced than 'connect to server'. Besides, you'd most likely need a central server anyway for a lobby.

Hi, appreciate more people! Σ ♥ = ¾

Learn how to award medals... and work your way up the social rankings
Offline Damocles

Sr. Member
**

Posts: 264
Medals: 14



« Reply #5 on: 2012-01-23 05:55:21 »

For the lobby, a PHP server would suffice.
Its easy to get a free service running it also.

Offline h3ckboy

JGO Kernel
*****

Posts: 1645
Medals: 4



« Reply #6 on: 2012-01-23 10:48:24 »

you can run a dedicated server for free as well.
Offline Damocles

Sr. Member
**

Posts: 264
Medals: 14



« Reply #7 on: 2012-01-23 11:17:28 »

Wich Site? Would interest me.

Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.069 seconds with 19 queries.