Testing on single machine

Ying Sun (YSun@emtrak.com)
Thu, 9 Apr 1998 14:35:46 -0600

From: Ying Sun <YSun@emtrak.com>
To: "'java-security@web2.javasoft.com'" <java-security@web2.javasoft.com>
Subject: Testing on single machine
Date: Thu, 9 Apr 1998 14:35:46 -0600

I'm trying to run the TalkServer example(can be found in jdk115
tutorialsocket section)on my nt machine. All the files:
TalkServer.java,TalkServerThread.java and TalkClientApplet.java are
compiled successfully.After the TalkServer is setup running,
"appletviewer talk.html" just worksfine; the two clients can talk to
each other. But if IE4 rather thanappletviewer is used, stacks of
SecurityExceptions, something like "cannotaccess 127.0.0.1", are always
thrown out. Seems the applet is turned downwhen it tries to connect to
the localhost.That's quite a mystery to me. 'cuz the html file and the
server are on thesame machine and an applet should always be able to
connect to the machinewhere it came , how come the security manager does
NOT recognize that the applet came right from the localhost and not let
it connect to the localhost?In scenario like this, I means everything is
running on a single local machine, the applet should be treated just
like an application. Is thatright? By the way, I also tried using
signature to get around this problem,and still the same nasty security
exceptions.Appreciate if someone can shed light on it.

Ying Sun