[java] applet networking restrictions
I''m trying to make a little multiplayer-game with Java, but have come upon a problem: Appelts cannot make a network connection to other applets (except the computer they are from)!
Is there anything I can do to make a multiplayer game? How do others do this? Thansk for your answers!
------------------------------
There are only 10 kinds of people: those that understand binary and those that don't.
The easiest way to do what you want is to have some kind of server-side application which communicates with all the applets.
All the multiplayer games I''ve been involved in have connected to a servlet (port 80 - which allows them to communicate through firewall software) to talk to other applets in the game session. That''s only useful if you''re developing a turn-based game. If you''re doing something more FPS related then you''ll need a dedicated server app to handle the comms.
If you want to have an applet that directly talks to another applet on another computer, then the applets will have to be signed - which means the player will be asked if they want to allow network comms.
Hope that helps.
All the multiplayer games I''ve been involved in have connected to a servlet (port 80 - which allows them to communicate through firewall software) to talk to other applets in the game session. That''s only useful if you''re developing a turn-based game. If you''re doing something more FPS related then you''ll need a dedicated server app to handle the comms.
If you want to have an applet that directly talks to another applet on another computer, then the applets will have to be signed - which means the player will be asked if they want to allow network comms.
Hope that helps.
Hmm, I don''t want a dedicated server running all the time... But I like the idea of signing the applet!
How is this done? As I remember there is a way to do this in Visual J++ but I don''t have it at hand right now... Is there another way to do this? Thanks again!
How is this done? As I remember there is a way to do this in Visual J++ but I don''t have it at hand right now... Is there another way to do this? Thanks again!
------------------------------
There are only 10 kinds of people: those that understand binary and those that don't.
Sorry, it''s been ages since I''ve done any applet work.
I''d suggest looking it up on java.sun.com
Here''s a link that talks about it for the plug-in:
http://java.sun.com/products/plugin/1.2/docs/signed.html
It''s bound to be a nightmare if you want to support different browsers though. I seem to recall Netscape do it one way, and Explorer do it another.
I''d suggest looking it up on java.sun.com
Here''s a link that talks about it for the plug-in:
http://java.sun.com/products/plugin/1.2/docs/signed.html
It''s bound to be a nightmare if you want to support different browsers though. I seem to recall Netscape do it one way, and Explorer do it another.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement