This is typically no problem - ssh -X and you are done.
But in some rare circumstances you will get something like this:
??
Following some other sources, you end up with tweaking xorg parameter without any success. The solution is very easy:
-Djava.security.managerCreate a server.policy file (you can use jdkXXX/jre/lib/security/java.policy as a tamplate) and add the following line:
-Djava.security.policy=server.policy
permission java.net.SocketPermission "localhost:*", "listen, accept, connect, resolve";Now create a small java program, which listens on a port (like this example).
nc -u localhost 9876Everyhting is fine.
tcpdump -i any port 53Cool. For each connect a DNS-Lookup is done.
permission java.net.SocketPermission "*:*", "listen, accept, connect, resolve";
permission java.net.SocketPermission "localhost:*", "listen, accept, connect, resolve";
permission java.net.SocketPermission "localhost:*", "listen, accept, connect, resolve";
permission java.net.SocketPermission "*:*", "listen, accept, connect, resolve";
YourJDK/jre/lib/security/java.policythere are some entries with java.net.SocketPermission like:
permission java.net.SocketPermission "localhost:0", "listen";Because java first checks this file, you have to remove such lines, to get rid of the DNS requests.