Running RMI server and client on same host works fine.
When starting my RMI server the
java code:
InetAddress.getLocalHost().getHostAddress() - returns 127.0.0.1 but I need the public LAN ip adress: 192.168.0.100 (My linuxserver)
Can solve this with -Djava.rmi.server.host=192.168.0.100 when starting the server but no -D parmeters is allowed in
SCJD.
How to configure this on linux
/etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.0.100 ???
BR