wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Problem connecting  to Remote Server" Watch "Problem connecting  to Remote Server" New topic
Author

Problem connecting to Remote Server

chetan raj
Ranch Hand

Joined: Jul 18, 2006
Posts: 34
Hello,

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
Bartender

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.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
 
subject: Problem connecting to Remote Server
 
Similar Threads
jini problem under NAT and suggestions required
RMI service bind/lookup problem(Very freak!)
how to check if a service is running on a port in a remote machine
JCONSOLE : how to run for remote tomcat
ServerSocket problem