how to sign an applet?

hi there..

am writing a client applet that's supposed to connect to a certain server at a specified port and then displays out whatever the server sends to it. I got an exception with the following msg:

"access denied java.net.SocketPermission 127.0.0.1: 9000 connect, resolve"

Now, i no that applets have some security restrictions that may cause this exception; am reading about grantig my code a socket permission, and about signed applets, but i dont really no to do any of them..

hope u can help me in this...

Mourad

[560 byte] By [MohMourada] at [2007-9-29 11:45:50]
# 1
if you really want to connect with one server,you can use HttpMessage class,you can find this source code in many web stations,such as www.Servlet.com;because primitive socket connection is not allowed in applet,but http-connect is allowed.
sirilya at 2007-7-15 1:20:17 > top of Java-index,Security,Signed Applets...