Click to See Complete Forum and Search --> : Socket


parsh
April 28th, 2000, 04:10 AM
How to open a socket from an applet ? What port i should use ? I want to write a chat applet, which communicates with chat server.
Thanx for all your replies !

:-) Parshwanath

nirmit
April 29th, 2000, 11:56 AM
Hi,

In general you can not open a socket from an Applet to other server except from where the applet is downloaded. It throws a security exception.

You need to get the applet signed by keytool and jarsigner and make it trusted.

port number to use is the port number on which the server listens. you need know the port number.

bye