RMI | Firewall issue revisited
843793Jul 4 2003 — edited Jul 7 2003Hi all,
I have searched through these forums for a suitable answer to my problem, but have not gotten any.
My RMI client-server app was working perfectly well on a Windows 2000 Advanced Server (with its firewall restrictions), until my company decided to buy another firewall appliance. My RMI server used to run on the Advanced server machine with a static IP and I ran my server with the following command :
java -Djava.security.policy=server.polocy -Djava.rmi.server.hostname=209.XXX.XXX.XXX Server
(209.XXX.XXX.XXX being the static IP used by the advanced server)
Now, with the addition of the firewall appliance and after having opened up 2 ports for RMI communication and forwarding them to the Host machine, my application had stopped functioning across the internet.
The host machine has an internal IP address of say 129.128.***.***
When an external client tries to establish contact with the my RMI server using 209.XXX.XXX.XXX (the external IP), I get a
"Connection refused: Unable to connect with 129.128.***.***"
This makes me believe that even though the client is able to initially establish connection with the RMI server, the RMI server sends back a reply to the client, asking it to find the server at the INTERNAL ip address.
Is there a way to avoid this ? Where am I going wrong ? How can I resolve this issue ?