jQuery in Action, 3rd edition
The moose likes Sockets and Internet Protocols and the fly likes Socket Applets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Socket Applets" Watch "Socket Applets" New topic

Socket Applets

Angela Jessi
Ranch Hand

Joined: Nov 27, 2000
Posts: 428
How Can I use Applet(NOT APPLICATION) to open sockets for any server?\
Thanks in advance,
maateen ashraf
Ranch Hand

Joined: Jan 08, 2001
Posts: 122
hello Angela Jessi
its security policy of VM which doesnot allow applet to make a socket with server on client machine....
any how if we would change the policy of VM or award permissions to browser or VM then it would be possible to get connected with server...
plz tell me if U get some more stuff in this regard
Anil Sadi

Joined: Jan 09, 2001
Posts: 23
Hai Angela Jessi,

You can open the socket connection to server from where ur applet downloaded from. You can connect to any server by giving some permissions through a policy file.
You can give permission through policytool
Angela Jessi
Ranch Hand

Joined: Nov 27, 2000
Posts: 428
Hi Anil & Maaten,
I really appreciate your response.
Please let me know how to use permission and policytool?
Secondly, I tested following yesterday in which I got success.
I had my own IIS server in which I stored my Applet(indirectly client socket program) and Html.
I have created server application(NOT APPLET) program which can listen to applet program. So When on my browser, when I typed in IP address and html form(which consist of APplet)of IIS server, I could able to see applet and also was able to open the socket of the server and update the values.

Carl Trusiak

Joined: Jun 13, 2000
Posts: 3340
Anil S,
Please read and follow the nameing policy Here It can benefit you in a lot of ways. We do book giveaways the information on that is Here
Looking forward to your posts

I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
I agree. Here's the link: http://aspose.com/file-tools
subject: Socket Applets
It's not a secret anymore!