G
G
Greetings,
I have code that starts the RMI registry as follows:
LocateRegistry.createRegistry(5000);
This works fine, however the registry listens on all interfaces at the
port 5000. I would like rmi registry to listen only on localhost
interface, in similar fashion to the way you can make MySQL and
Postfix listen only to localhost. For example a netstat -ta would
reveal:
Proto Recv-Q Send-Q Local Address Foreign Address
State
tcp 0 0 localhost:mysql *:*
LISTEN
tcp 0 0 *:www *:*
LISTEN
tcp 0 0 localhost:smtp *:*
LISTEN
tcp 0 0 *:5000 *:*
LISTEN
tcp6 0 0 *:ssh *:*
LISTEN
In other words I would like to see:
tcp 0 0 localhost:5000
*:* LISTEN
Does anyone know if rmi registry supports interface binding like this?
Cheers,
Greg
I have code that starts the RMI registry as follows:
LocateRegistry.createRegistry(5000);
This works fine, however the registry listens on all interfaces at the
port 5000. I would like rmi registry to listen only on localhost
interface, in similar fashion to the way you can make MySQL and
Postfix listen only to localhost. For example a netstat -ta would
reveal:
Proto Recv-Q Send-Q Local Address Foreign Address
State
tcp 0 0 localhost:mysql *:*
LISTEN
tcp 0 0 *:www *:*
LISTEN
tcp 0 0 localhost:smtp *:*
LISTEN
tcp 0 0 *:5000 *:*
LISTEN
tcp6 0 0 *:ssh *:*
LISTEN
In other words I would like to see:
tcp 0 0 localhost:5000
*:* LISTEN
Does anyone know if rmi registry supports interface binding like this?
From what I can tell, it does not.
Cheers,
Greg