Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Client behind NAT

843793Nov 29 2005 — edited Nov 30 2005
I have been searching for a solution for this issue with all that google knows......


I have my client behind NAT with ip 192.168.27.1

And the server behind NAT with some ip (i am not really worried abt this)

Now I register a client object to server for notification. SImply a hash table in server stores all my client objects. On a expected change, I invoke a method in my client objects.

In this scenario I happened to observer that the client objects sent to server had the client ip (192.168.27.1) inside it and not the NAT ip through which they went out.

So when I went invoke the remote method nothing interestingly happens as the client cannot be located.

I tried creating custom sockets in client and binding it to NAT ip --> obvious bind exception for a ip that is not with client

Setting the NAT ip as java.rmi.hostname in client --> no effect, since still the server is trying to notify (192.16827.1)

Help me to root out this issue. I feel that there must be a solution for this, otherwise RMI it would not have been this much successful.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 28 2005
Added on Nov 29 2005
4 comments
453 views