users@glassfish.java.net

accessing EJB deployed on the Glassfish on the server with multiple IP

From: <glassfish_at_javadesktop.org>
Date: Wed, 10 Oct 2007 01:34:12 PDT

Server OS: Linux debian (sarge), kernel 2.6.8-3-386, libc6 2.3.2.ds1-22
Glassfish V2
java : version "1.6.0", Java(TM) SE Runtime Environment (build 1.6.0-b105)
Client OS : Windows XP SP2

I can't connect to EJB, deployed on the Glassfish, via IIOP.
It has multiple IP addresses : LAN 192.x.x.x and Internet 217.x.x.x.
I set two IIOP listeners. The first listener on 192.x.x.x (port 9411), the second - on 217.x.x.x (port 8811).
If client is trying to connect from the LAN, the connection is successful. Two connections are opened (both to the 192.x.x.x:9411). It is clear from the netstat.
If client is trying to connect from the Internet, its connection is fail. The first connection is established correctly (to the 217.x.x.x:8811), but the second one is trying to connect 192.x.x.x:8811 or 192.x.x.x:9411, which is not accessible from the Internet since it is internal network IP.

Please explain how to configure the Glassfish to work correctly.
Thank you.
[Message sent by forum member 'falsehood' (falsehood)]

http://forums.java.net/jive/thread.jspa?messageID=239259