users@glassfish.java.net

Re: how to get glassfishv3 to listen on a single ip?

From: Corey <corey_at_bitworthy.net>
Date: Fri, 21 Nov 2008 12:52:33 -0700

On Friday 21 November 2008 12:04:29 pm Jeanfrancois Arcand wrote:
> Salut,
>
> Corey wrote:
> > I've got a box w/ two nic's and two ip's - I want to configure glassfish
> > to bind to only one of the two ip's, but have not been successfull in
> > trying to do so.
> >
> > From my domain.xml:
> >
> > <http-listener id="http-listener-1" port="8080" enabled="true"
> > address="192.168.0.5" default-virtual-server="server" server-name="" />
> >
> > main ~ # netstat -tpnl | grep 8080
> > tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 17318/java
> >
> > I've tried a few other things, but it appears as though no matter what,
> > the app server takes hold of 0.0.0.0, i.e., _every_ ip on the box.
>
> Smell like a bug. Can you log an issue here:
>
> https://glassfish.dev.java.net/servlets/ProjectIssues
>
> Looks like Grizzly is not getting properly the information.
>
> Thanks!
>

Appears to have already been reported (opened Nov 7):

https://glassfish.dev.java.net/issues/show_bug.cgi?id=6737


Unfortunately, this is a total show-stopper for me, as all the
machines I deploy apps onto are multi-homed and absolutely
require the ability for me to configure the app server to
bind to specific ips so as to not interfere with other
services.

I'll have to wait until that's fixed before I can continue
working w/ glassfish. Would it be considered bad form for
me to put all 10 of my votes into a single bug?