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!

Chat Applet Without Server

Status
Not open for further replies.

ksoong

Programmer
Oct 3, 2000
57
CA
Is it possible to program a chat applet that will be able to message all of the people connected to a web site without connecting to a server? i mean, is it possible to send the message directly to another client's applet?

Kenneth
 
Negative. Applets cannot make network connections to anyone except the server they came from--that is unless you are willing to mess around with the security manager (i.e. you have control or access to the mahcines that will be running your app).

You'd be better off in setting up your chat client as an application and have each client run a multicast socket (I think). Haven't ever written a client centric chatter but this seems like it would be the best way.
 
Meadandale is right. A multicast socket would seem to be a better choice. You don't necessary have to code your own clients too if you want to use multicasting. All you need is to create a server application and you can connect to it through telnet and other apps.

Regards,
Leon 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 :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top