users@glassfish.java.net

Re: How to make Glassfish Server bind to multiple ipaddresses of the system

From: <glassfish_at_javadesktop.org>
Date: Tue, 13 Jan 2009 09:29:38 PST

You should be binding your server to a hostname, that's ideally resolved using some mechanism that is DHCP aware.

If you're binding to actual IPs, there's not a whole lot of hope there as you'd need to actually change the config.xml for Glassfish everytime the IP changes.

If you're binding to a hostname, then you need to ensure that your OS and DNS and such are all in sync when the IP changes. For example, maybe your OS DNS lookup cached your hostname, even though the IP has changed. Glassfish isn't making any special use here, it would simply be asking for the IP of the hostname it knows. If that information is wrong from the OS, then there's not much GF can do there either.

Finally, of course, 0.0.0.0 listens to "everything". That may or may not work for you however.
[Message sent by forum member 'whartung' (whartung)]

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