Question:
Why will this code not work with IE 5.5?
Answer:
It’s not a question in this case of JavaScript not working with IE 5.5, but of Java not working with IE at all.
In your line of code
localhost = java . net . InetAddress .
you’re trying to get JavaScript to talk to Java. Netscape does this using functionality called LiveConnect, which MS has never chosen to implement.