File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Distributed Java and the fly likes Problem connecting  to Remote Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Problem connecting  to Remote Server" Watch "Problem connecting  to Remote Server" New topic

Problem connecting to Remote Server

chetan raj
Ranch Hand

Joined: Jul 18, 2006
Posts: 34

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.
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

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.
I agree. Here's the link:
subject: Problem connecting to Remote Server
It's not a secret anymore!