I had an applet hosted on IP address xx.xx.xx.xx, and the applet could do a
URL(“http://xx.xxx.xx.xx/resource”).openConnection() and do I/O without problems.
Now I have the applet hosted on domain www.abcdef.com which resolves to xx.xx.xx.xx, yet
URL(“http://www.abcdef.com/resource”).openConnection() works fine in MSIE, but fails in Firefox with:
java.security.AccessControlException: access denied (java.net.SocketPermission xx.xx.xx.xx:80)
I think Firefox turns the domain into its IP-address… then checks whether or not “xx.xx.xx.xx” textually equals “www.abcdef.com” ???
This is such a common case, that I’m wondering why I fail to get it right…