... Do you mean obtain a remote object reference? ok as i understand you have a RMI server that is accessed by clients inside and outside the LAN.
so my problem when i make binding or rebinding to rmi object which ip will use it to make look up to the object
You rebind the remote object in the server machine pointing to "localhost", as at least rmi registry dont let remote bindings for security reasons.
LAN clients lookup with the server private address.
Internet clients lookup with the gateway public address. For this your network must be properly configured. Your server must be routable from the outside world, so the gateway knows who private machine to forward the incoming request.
my project depends on ip address...if a system is using proxy ip address for internet connection..My lan ip is different and internet ip address is differen...By java code i found lan ip ...Is it possible to find the internet proxy ip address using java code...in http://www.haxial.com/whatismyipaddress they have achieved.pLEASE IF ANYBODY IS HAVING THE CODE for finding internet proxy ip address..pLEASE SEND ME
Bring me the box labeled "thinking cap" ... and then read this tiny ad: