java.rmi.server.hostname and a router

Hi,

I'm new to RMI.

I'm trying to establish connection between my client and my server that are running on 2 different IP, but my server is connected to a router.

So my question is what should I set the java.rmi.server.hostname property to (192.168... or 204.30...)?

And must a property with this IP be set when lauching the client ?

Thank you!

[384 byte] By [beaupre_aa] at [2007-11-26 21:49:08]
# 1
java.rmi.server.hostname should be set to whatever hostname or IP address the client should use when trying to connect to the server. It only needs to be set in JVMs which export remote objects, i.e. in server JVMs.
ejpa at 2007-7-10 3:40:25 > top of Java-index,Core,Core APIs...