views:

960

answers:

3

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

How can I use RMI with a firewalled server and firewalled applet client? (If possible)

I know that the RMI server uses port 1099 (by default, but this is configurable); however after this the communication requires a new socket on a different random port. I also know that you can set the proxy on the client for RMI over HTTP tunneling which in theory should solve my issue. But I can't make it work (I tried setting the environmental properties on my XP client, but Internet Explorer keeps ignoring them).

A: 

Can you open the port that RMI is using on the firewall.

Peter Lawrey
I've updated the question.
michelemarcon
A: 

Have not looked into it to deeply my self yet, but while looking around for a project I am currently doing I came accross LipeRMI.

You might want to have a look at it as it geared towards internet usage and mentions "shadow the clients in such way they can be behind a local network, router or firewall;"

Edit:

Remembered another implementation I came across a while back called RMI Doves 1.0: Solution for Java RMI firewall problem you might want to have a look at that one as well.

Mark Davidson