users@glassfish.java.net

How to setup Glassfish behind NAT?

From: Witold Szczerba <pljosh.mail_at_gmail.com>
Date: Wed, 16 May 2007 22:54:57 +0200

Hi there,
I have problem with Glassfish (v2b45). It is behind NAT/Firewall, it
has local IP address: 192.168.1.202. Router redirects ports 3700 and
8080.
I have deployed EAR application (EJB+client modules), customers are
supposed to launch that application via Java WebStart.

When they launch application using http://PUBLIC_IP/SomeName/SomeName-client-app
application downloads, but it cannot start. Here is what Java Console shows:
---------------------------------
WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType:
IIOP_CLEAR_TEXT; hostname: 192.168.1.202; port: 3700"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
        at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2371)
        at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2392)
        at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:230)
        at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:243)
        at com.sun.corba.ee.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:104)
        at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:165)
[...]

I am really worried is there any way to make that application work?
Our customer has only one public IP, they already bought server, they
redirected router as I told them, but they cannot use our application.
They are asking me questions what is going on, right now I am really
scared :/ Can you help me?

Thanks,
-josh