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
Printable View
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
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