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 rmi NAT firewall problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "rmi NAT firewall problem" Watch "rmi NAT firewall problem" New topic

rmi NAT firewall problem

simon tee

Joined: Aug 03, 2007
Posts: 1
i am working on a project where the server is behind a natfirewall. the client outside the firewall can connect to the server when the server is started with the option -Djava.rmi.server.hostname= xx.xx.xx where this is the ip address of the NAT from outside. the needed ports are open on the firewall and forwarded to the actual server. when the clients connect to the NAT ip address, the connection works fine. now i have the problem that clients from inside the firewall cannot connect anymore. as the serveraddress does not work due to the -Djava.rmi.server.hostname and the NAT address can not be called from the inside !! is there a way to fix this ? how can i connect to both clients from inside and outside a NAT/firewall ??

thank you for help

Edward Harned
Ranch Hand

Joined: Sep 19, 2005
Posts: 291


Ed's latest article: A Java Reactive Generator
I agree. Here's the link:
subject: rmi NAT firewall problem
It's not a secret anymore!