3 ms·
A signed Java applet which has asked the user for permission can bind to local ports and make arbitrary connections to any IP. JavaScript can interact with the
by mike-cardwell 15y ago
A signed Java applet which has asked the user for permission can bind to local ports and make arbitrary connections to any IP. JavaScript can interact with the Java applet too. I don't know, but the same might be possible with Flash too?
- andrewcooke 15y agoyes, i think this would work. unfortunately, i can't see anything in "pure" javascript that is equivalent: the xmlhttprequest is restricted to the originating ip (and it looks like they are single request/response, but in practice perhaps that could be worked around); websockets have the same restriction (but are bi-directional and multiple message) plus they are implemented on top/inside of the http stream, so don't (uniquely) own a tcp connection. and server-side java libs exist for hole punching. so you could pretty easily implement a java-only solution, called from javascript.