wood burning stoves 2.0*
The moose likes Applets and the fly likes question about applet ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "question about applet ?" Watch "question about applet ?" New topic
Author

question about applet ?

hekaro sa
Greenhorn

Joined: Oct 10, 2007
Posts: 5
hi,
i want to make an Applet game in html page, and i want it to be 2 player game through network(peer to peer),,
Can I make the applet page for the first player (Server) and the applet page for second player (Client)??
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41034
    
  43
I'm not sure what you mean by "client" and "server" in a P2P scenario - aren't the players equals? Does one applet do something different than the other one?

Unless both players are on the same network segment, it will most likely not be possible to make direct connections between the two machines because of firewalls in between.

The general architecture for applet-based multi-player games would be for both players to connect to a server which transmits messages between the players. That would also obviate the need to know the IP address for the other player.


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: question about applet ?
 
Similar Threads
What is a good front end to use for a Java web based game?
Communication between applet instances
Network Game??
Awkward question (sorry)
Connect-four