[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 224
  • Last Modified:

Security exception, only inside the web page: why?

I've an applet that open a socket with the server to read datas.

This class runs good in the appletviewer, but if i open the HTML page witch have the applet inside, i have a Security exception.

What's wrong?
0
fab1970
Asked:
fab1970
1 Solution
 
objectsCommented:
Applets can only make network connections to the server that they were loaded from.
0
 
fab1970Author Commented:
Right. So my applet connect to my PC ip address.

I've build a supertiny winsock "bridge" with VB (that i know a lot more!): it listen on my pc ip address, connect to a intranet ip address, and echoes everything.

The question is always the same: if my applet (that is loaded from my pc) can open a connection with my pc in the applet viewer, why it can't from the HTML page?
0
 
objectsCommented:
Because applet viewer has less security restrictions than IE or NS.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
objectsCommented:
0
 
objectsCommented:
You can remove this restriction by 'signing' the applet.
0
 
heyhey_Commented:
> I've an applet that open a socket with the server to read datas.

usually applet is allowed to open sockets to it's web server machine only.

new Socket(getCodeBase().getHost(), port) should work fine.
0
 
objectsCommented:
0
 
girionisCommented:
No comment has been added lately, so it's time to clean up this TA.

I will leave a recommendation in the Cleanup topic area that this question is:

- points to objects@idg

Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

girionis
Cleanup Volunteer
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now