• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Socket Applets

 
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
How Can I use Applet(NOT APPLICATION) to open sockets for any server?\
Thanks in advance,
Angela
 
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Bye
Anil
 
Angela Jessi
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
Thanks,
Angela

 
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 love a good mentalist. And so does this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic