With Java 1.6.0.22 i'm not able to open a socket to localhost, the applet is unsigned and is being loaded from the webserver http://localhost/myapplet
If i load it from my computer ip 192.168.1.x and open a socket to that ip it works
With a simple demo that only open a socket it works, but as soon as my applet use JavaScript to Java calls the socket not work.
If I add a crossdomain.xml file the socket works again.
If I allow only 127.0.0.1 it doesn't work
With 1.6.0.17 it works fine
That is similar to question Socket connection to originating server of an unsigned Java applet
But in my case i loading applet from a webserver not from local file system.