spender
spender

Reputation: 120450

Java in browser... opening a socket

I don't mind presenting the user with permission dialogs... What's involved in opening a listening socket on a web page?

Upvotes: 3

Views: 451

Answers (2)

Stephen C
Stephen C

Reputation: 718836

The browser sandbox allows you to open a socket back to the originating server. That should be enough.

The main alternatives for connecting sockets to other address entail using a signed applet, a browser plugin / addon, or (possibly) an ActiveX control. All of these alternatives require the user to take active steps to "accept" or install stuff, and all of them are a potential security risk for the user ... whether or not you are one of the good guys who don't push malware at people.

Upvotes: 1

musiKk
musiKk

Reputation: 15189

Well, you use a signed applet. The user has to accept the applet and after that you can do about anything you can do with a standalone Java application.

Upvotes: 2

Related Questions