I have a CORBA client, written in Java, that receives notifications from server A in port 11112. Now, my server is behind a firewall, and my IP address is behind NAT. The notifications are not received any more. I suspect that server A sends the messages to my unnated IP, and it should point to the nated one... Is there any way, in Java, to specify to the server that should point to the nated IP?
I found a solution. You need to set some property, in the client, that tells the ORB what the effective listening address is.
Properties props = new Properties();
props.put("org.omg.CORBA.ORBInitialPort", "11112");
props.put("org.omg.CORBA.ORBInitialHost", "MyNatedHost");
ORB orb = ORB.init(args, props);