• Post Reply Bookmark Topic Watch Topic
  • New Topic

applet network problem??!

 
hekaro sa
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • 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)?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • 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).
 
Ryan Muster
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • 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: 42970
73
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!