first off, I don't think you can not bind to an ip+port that is not on
the local machine, at least I think so. Because it would undermine any
local control of the machine/device.
In any case, correct me if I am wrong here, but it seems to me that you
have misunderstood how NAT works. You are trying to bind an rmi server
to the NATed networks public ip address? the problem is that the port is
not open because you have to open it by opening a socket connection to
an external server, only by doing this will the NAT device open an
external port with which the remote server will try to respond through.
So in essence you can not forcibly open an external port on a NAT device
by just binding to it, you have to first open a connection/port from the
client, then you can try to use it. But that leaves you with one
problem, you have to figure out what port the NAT will be using, which
is an algorithmic problem that has not yet been solved.
So your solution is to get a range of static ip addresses to use on the
devices instead of having a NATed network.
tom
> I have rmi application which is running correctly
> inside LAN where im starting the server using lan
[quoted text clipped - 32 lines]
>
> Naming.lookup("//10.0.0.2:?/"+RemoteInterface.REGISTRY_NAME);