[4666] in java-interest

home help back first fref pref prev next nref lref last post

Socket Question

daemon@ATHENA.MIT.EDU (Mike Fletcher)
Wed Jan 10 14:08:09 1996

Date: Wed, 10 Jan 96 12:39:23 EST
From: Mike Fletcher <fletch@ain.bls.com>
To: java-interest@java.sun.com
Cc: Bach Nguyen <jsbach@ix.netcom.com>
In-Reply-To: Bach Nguyen's message of Wed, 10 Jan 1996 11:36:19 -0500


	Netscape's security model restricts what applets that are
loaded via the network are allowed to do.  One of these things is that
sockets can't be created to connect to a host other than the one the
code was loaded from.  This means you need to do one of two things:

	*) Run an httpd on the machine you want to connect to

	*) put the class in a directory in your CLASSPATH and
	   it will be loaded from local disk, avoiding the
	   restrictions.

	I'm writing the networking part of a book on Java (Java
Unleashed from Sams.net, comming out in Feb/March, plug plug :), and
I've had plenty of fun trying to get things to work from NS. But the
good news is that a later version will have more flexibility with
security models (check out java.lang.SecurityManager and the Security
faq at:

	http://www.javasoft.com/docs/sfaq/

	for more information).  Hope that helps.



	
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post