users@glassfish.java.net

Re: How to connect Java SE client to Java EE module running on GlassFish?

From: Witold Szczerba <pljosh.mail_at_gmail.com>
Date: Mon, 17 Aug 2009 05:06:01 +0200

2009/8/16 Dies Koper <diesk_at_fast.au.fujitsu.com>:
> What do you get if you put your public IP address in the Network Address
> field, restart your server and run your client again?

Well, if your Glassfish server has address 'x' on network 'y' and your
client contacts Glassfish using address 'a' on network 'b' which is
not the address of Glassfish, then what can you do? You cannot lie to
Glassfish that it's address is 'a' on network 'b' when in fact it's
address is 'x' on network 'y'. It will fail to start and initialize
network stack if you lie to it.