wood burning stoves
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
JavaRanch » Java Forums » Java » Applets
Bookmark "question about applet ?" Watch "question about applet ?" New topic

question about applet ?

hekaro sa

Joined: Oct 10, 2007
Posts: 5
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

Joined: Mar 22, 2005
Posts: 42965
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.
I agree. Here's the link: http://aspose.com/file-tools
subject: question about applet ?
It's not a secret anymore!