In the release notes of 4.1 is a chapter "Known Issues in GlassFish Server 4.1" where I can read
"App client cannot find EJB behind NAT (17147) and EJB remote deployed on GF behind
a NAT inaccessible (17151)"
Workaround
None. There is no properly tested workaround available for this issue.
What did happen with the support of these options
asadmin create-jvm-options -Dcom.sun.corba.ee.ORBVAAHost=public-IP-adress
asadmin create-jvm-options -Dcom.sun.corba.ee.ORBVAAPort=public-port
asadmin create-jvm-options
-Dcom.sun.corba.ee.ORBUserConfigurators.com.sun.corba.ee.impl.plugin.hwlb.VirtualAddressAgentImpl=x
This worked alread fine for GF2 and GF3
best regards