How to use RMI with the applet client behind the firewall?

How can I use RMI with the applet client behind the firewall?

How can I use RMI with a firewall server and applet firewall? (If it is possible)

I know that the RMI server uses port 1099 (by default, but this is configurable); however, after that, a new socket on another random port is required for communication. I also know that you can set the proxy server for the client for RMI through HTTP tunneling, which theoretically should solve my problem. But I can't get it to work (I tried to set the environment properties on my XP client, but Internet Explorer ignores them).

+6
java applet firewall rmi
source share
4 answers

If the server code is in your hand, you can also restrict RMI to use the prefix port by providing a custom RMISocketFactory, as described here: http://insidecoffe.blogspot.com/2012/02/firewall-friently-rmi-port-fixing.html

(Note the hint that this might cause problems when using JMX in parallel)

+1
source share

I have not studied it yet deeply, but looking at the project that I am currently doing, I came through LipeRMI .

Perhaps you should take a look at it, since it is Internet-oriented and mentions "obscure clients so that they can be located behind a local network, router, or firewall";

Edit:

I remembered another implementation that I came across after a while, called RMI Doves 1.0: a solution for the problem with the Java RMI firewall , you might want to look at that too.

0
source share

on your server, enter the code as follows:

RmiInterface stub = (RmiInterface) UnicastRemoteObject.exportObject(rmi, 35400); LocateRegistry.createRegistry(1099); Naming.rebind("//192.168.102.128:1099/rmi", stub); 
0
source share

All Articles