File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Spring in Action this week in the Spring 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: 42273
    
  64
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 ?