Applets running under the control of a security manager--that is untrusted applets that run inside a web browser--are normally only allowed to connect back to their code base. The code base is the host from which they were downloaded, as returned by thetogetCodeBase()
method of theApplet
class.
Applets running under the control of a security manager--that is untrusted applets that run inside a web browser--are normally only allowed to connect back to the host they were downloaded from. This host can be determined from the URL returned by thep. 65: In the JDK 1.2, the System propertygetCodeBase()
method of theApplet
class.
mail.host
(note the period)
is checked for the address of the SMTP server
rather than mailhost
. It's still mailhost
in Java 1.1, however. Thus in Java 1.1:
java -Dmailhost=mail.cloud9.net MailClient elharo@metalab.unc.edu
In Java 1.2:
java -Dmail.host=mail.cloud9.net MailClient elharo@metalab.unc.edu
p. 70: In both code examples on the page
Socket s = s.accept();
should be
Socket s = ss.accept();