Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Socket Applets

 
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
  • 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
 
Popeye has his spinach. I have this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic