21. februar 2002 - 15:42Der er
4 kommentarer og 1 løsning
Use sockets with Applets?
I've been trying to establish a socket(datagram) connection between my Java applet and a Java application i developed. Everything worked fine as long as I was testing it in my Appletviewer, but when I try to use it in my Browser i get some security exeption.
How do I make I realtime connection/stream between a Browser(applet) and an application? Am I able to use sockets in applets?
Most java security systems only allow an Applet to communicate with the server from which it comes from. I Don't know weather or not sockets are allowed at all...
What does that mean? Does it mean that if my Java application(server) is on the same server/computer as the applet(lets say it's in the same folder), but I run the applet on diffrent computer(the applet is run in a browser) then it should work(cuz applet is downloaded from the same computer as the server is running on)?
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.