• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

applet network problem??!

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,
if i make network between 2 applets in html page, one side is the server and the other is a client..it didn't work

it stop in the server side after Socket socket=serversocket.accept();...

and security error appear in client side.

what is the reason? and how can I solve this problem please(in details)?
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are the two applets on the same network? If not, firewall issues will likely prevent this from working.

Also, the applets need to be signed (or the local security policy relaxed) in order to use sockets (assuming that neither applet runs on the server where they are served from).
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you google you'll find the answer Applet Security or Applet Sandbox.

Its a long long time since I used Applets... they not my favorite technology.

But (from memory) essentially if you dont want to get a verisign cert, they can only talk to the server they come from.

So saving to the user PC or reading files... no.
Loading an Applet from one site, another from another site, and using a little java script between them... I think is also a no.

Applets have massive security walls around them.

I wish they put a big sign at the top of Applet tutorials... YOU WILL PROBABLY HAVE TO PAY TO USE IT

Sucks... but they have to do it.
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ryan Muster:
But (from memory) essentially if you dont want to get a verisign cert, they can only talk to the server they come from.

I wish they put a big sign at the top of Applet tutorials... YOU WILL PROBABLY HAVE TO PAY TO USE IT



It's possible to use a (free) self-signed certificate instead of one from Verisign. For an intranet application, or a non-commercial internet app, that might be sufficient. For a commercial application the cost of one certificate should be no big deal.
 
pie. tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic