aspose file tools*
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
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: 42648
    
  65
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
 
wood burning stoves
 
subject: question about applet ?