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)??
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.
Don't get me started about those stupid light bulbs.