Java Security FAQ: Connect to a 3rd host

Here's an applet that tries to connect to port 25 (the port often used for delivering email) on the host named

Here's the source.


By default, applets can't connect to hosts on the internet other than the originating host. You can allow applets to do this from Sun's appletviewer if you put the appletviewer in "unrestricted" mode. It is strongly suggested that you never use the appletviewer in unrestricted mode to load foreign applets.

Back to the Java Security FAQ