Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem connecting to Remote Server

 
chetan raj
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic