# Re: Applet acting as a server.

Charlie Lai (charlie@angeles.eng.sun.com)
Tue, 4 Aug 1998 11:03:48 -0800 (PDT)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: WAGNER LUIZ C. GONCALVES: "Signed Applet for Database Access"
- Previous message: Charlie Lai: "Re: Security interest mailing list"
- In reply to: christian.halvorsen@ac.com: "Certificate Authority support in keytool"

    From: charlie@angeles.eng.sun.com (Charlie Lai)

    Message-Id: <199808041803.LAA23441@angeles.eng.sun.com>

    Subject: Re: Applet acting as a server.

    To: qjbr@oce.nl (Jurjan Brust)

    Date: Tue, 4 Aug 1998 11:03:48 -0800 (PDT)

    In-Reply-To: <000501bdb6d9$fdf9b1c0$98b4bc86@pc2-oa6.oce.nl> from "Jurjan Brust" at Jul 24, 98 10:06:41 am

hi,

> In order to receive trap messages from the SNMP agent the applet
> has to act as a server using port number 162. However, it appeares
> that applets (by using browsers) are not allowed to do this. Is it true
> that Java applets are not allowed to open any DatagramSocket using
> port numbers beneath 1024?
>
> If this is so, why not? And is there a solution to this problem?

true, applets are unable to access privileged ports < 1024.

to get around this in jdk 1.1.x, you can sign your applet.
check out: http://java.sun.com/security/signExample
and the plugin at http://java.sun.com/products/plugin
to do this.

in jdk 1.2, you can set up your policy to allow this.
for more information, check out:

http://java.sun.com/products/jdk/1.2/docs/guide/security/index.html

hope this helps,
charlie

- Next message: WAGNER LUIZ C. GONCALVES: "Signed Applet for Database Access"
- Previous message: Charlie Lai: "Re: Security interest mailing list"
- In reply to: christian.halvorsen@ac.com: "Certificate Authority support in keytool"