Re: Limiting RMI to localhost



I'm writing a big application that I divide into 2 processes (server
and interface) with RMI to communicate between them.
I would like to limit the access to the server only from the interface
process and also only from the local machine.
Is there a way to limit RMI to localhost only?

I cannot block all sockets outside the machine since I use them in the
server process.

Can't you setup to RMI server socket to explicitly listen on localhost:<your port>? This way it shouldn't be accessible from outside.

Ronny
.



Relevant Pages

  • RMI between Java 1.4 and Java 1.5 problem
    ... Handler (no security manager: RMI class loader disabled) ... The 1.4 client will connect to the 1.5 server if I ... the rmi interface is very simple. ...
    (comp.lang.java.programmer)
  • Re: RMI design help
    ... > send requests to the server, but I also want the server to be able to ... requests to the server it should really run a processing thread to do this. ... > Is it valid to create a two way RMI interface or do I need to create ... interface and therefore your server and UI would both have to implement ...
    (comp.lang.java.programmer)
  • Re: Limiting RMI to localhost
    ... I would like to limit the access to the server only from the interface process and also only from the local machine. ... Is there a way to limit RMI to localhost only? ... A server socket bound to localhost will be able to receive connections from outside. ...
    (comp.lang.java.programmer)
  • Re: Possibilities with RMI
    ... > which connects to an overall server. ... the server must know what port the client is ... > out various different objects that implement a set interface. ... > like these sent over RMI, ...
    (comp.lang.java.help)
  • Re: What doesnt lend itself to OO?
    ... The whole idea that a subsystem is just ... > The first line exists in the server. ... objects between client and server i.e. as far as the client code is ... > external interface is the traditional input interface whose ...
    (comp.object)