i want applet connect to another machine but the socket cannot connect to the server i searched the web and there is something about giving permissions to the applet but i donnot know how to do so

## Recommended Answers

Jump to PostThere are several ways to give applets permission:

sign the jar file the class files are in

add an entry to the .java.policy file on the PC where the applet is being executed

Jump to PostI think some of it is discussed in these tutorials:

http://docs.oracle.com/javase/tutorial/deployment/applet/index.html

http://www.oracle.com/technetwork/java/javase/jnlp-136707.htmlYou can use the JDK's policytool program to update the .java.policy file to give an applet permission on one PC.

…

Jump to PostShow the record and the field you are asking about.

Jump to Postpermission java.net.SocketPermission "127.0.0.1:8889", "connect, resolve";

Jump to PostWhat error message do you get?

Did you make a mistake that must be corrected to allow the code to work correctly?

## All 23 Replies

NormR1
563
Posting Sage
Team Colleague

lena1990
-3
Junior Poster in Training

NormR1
563
Posting Sage
Team Colleague

lena1990
-3
Junior Poster in Training

NormR1
563
Posting Sage
Team Colleague

lena1990
-3
Junior Poster in Training

NormR1
563
Posting Sage
Team Colleague

lena1990
-3
Junior Poster in Training

NormR1
563
Posting Sage
Team Colleague

lena1990
-3
Junior Poster in Training

NormR1
563
Posting Sage
Team Colleague

lena1990
-3
Junior Poster in Training

NormR1
563
Posting Sage
Team Colleague

lena1990
-3
Junior Poster in Training

NormR1
563
Posting Sage
Team Colleague

lena1990
-3
Junior Poster in Training

NormR1
563
Posting Sage
Team Colleague

lena1990
-3
Junior Poster in Training

NormR1
563
Posting Sage
Team Colleague

lena1990
-3
Junior Poster in Training

NormR1
563
Posting Sage
Team Colleague

lena1990
-3
Junior Poster in Training

NormR1
563
Posting Sage
Team Colleague

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.