I am binding (server) to the Jini lookup running on a remote server which has a valid static IP.
My local IP address is 192.168.x.x and static as 59.x.x.x . When requesting for the object from other machine, the lookup service returns my local IP (192.x) instead of the static IP (59.x). As a result, it throws an IOException.
Please let me know how I can make it work in my LAN. Does my system need a valid static ip address to bind as a server to a lookup service running on remote machine with valid IP.
By "static", do you mean the IP address of the router?
Jini is built on RMI and RMI has ways around NAT throught specifying "proxy" properties and configuring the router to do port forwarding (or use HTTP tunneling) - but it's probably going to be a lot of work to get everything configured properly.
There's some discussion of the difficulty of this in this post in the JINI-USERS mailing list.
Write once, run anywhere, because there's nowhere to hide! - /. A.C.