This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Pipeline as Code and have Mohamed Labouardy on-line!
See this thread for details.
Win a copy of Pipeline as Code this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

jini problem under NAT and suggestions required

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I have gone through many posts and forums spending lot of time
researching on this issue.

After months of work with Jini, we have finished writing a complex push
client/server based on jini. Things work fine in local LAN but not in
production environment (Murphy's law).


My setup is like this

The LUS server running JINI sends a message to all the services
registered with it - thereby acting as a client too

Jini LUS -> Machine with valid static IP
Service is provided by a machine under NAT (Local IP - 192.168.0.x,
Global IP (firewall) - Valid static IP)
Client -> Machine with valid static IP (actually the same machine which
is running Jini LUS)

Problem

Eg Client: A machine under NAT registers with Jini and the server tries
to send some message periodically. When requesting for the object from
other machine, the lookup service returns its local IP (192.x) instead
of the static IP (69.x). As a result, it throws an IOException. I assume
that providing with real IP address would not help too as the firewall
would not allow incoming packets if the connection is being invoked from
external servers (typical firewall).

Questions

a) Does Jini behave well under NAT? I have seen mixed responses on this
subject. For me, it does not work.
b) If not, what are the workarounds? Should I just use some poller which
changes the functionality of client as server but this increases traffic.


Please help me out how can i make it work.
 
chetan raj
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hai, please give some reply to my queries. If anything is unclear
please let me now. Why there is no reply for this questions.
 
Whoever got anywhere by being normal? Just ask this exceptional tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic