Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help! applets with each other over internet

Status
Not open for further replies.

Blaque

Programmer
May 30, 2001
4
US
I'm getting into deeper Java programming and need to know if there is a way to let applets on two different machines communicate directly over the internet.
 
I would think you could.... considering Yahoo! Chat, and Yahoo! Games are made using Java and they do the same thing you are talking about but I have no clue how to do it, sorry.
 
I'm not sure if their systems communicate through a server program or if the applets can talk directly to each other. But that is exactly the type of project I'm working on.
 
Naw thats not it, but thanks for the help. I'm trying to do peer to peer communication over the internet meaning I want the applets to talk on 2 different machines across the internet.
 
Ohh...ok, then take a look at the java.net package. You can use UDP or Socket connection but preferably Socket since you are trying to communicate over the internet.

I think you will have to get your applet signed in order for them to start talking. And perhaps it would be good to have a "server" applet if you have more than 2 client's talking with 1 another.

Regards,
Leon
(p.s. this can definately work because I have done a LAN game (applet too of course) and within it, it allows you to chat with one another.) If you need additional help, you can email to me at zaoliang@hotmail.com I don't guaranty that I will be able to solve your problems but I will try my best :)
 
Thanks Leon. I think thats just about all I needed to know to get started.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top