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 17:38:49 -0700

On Friday 21 November 2008 05:23:26 pm Jan Luehe wrote:
> Hi Corey,
>
> 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.
>
> Fix committed. Let me know if you need a patch, or if the upcoming
> nightly will be good enough for you to try out.
>

Wow - very cool; this is great news, I'll grab the nightly and test it -
will report back later tonight or tomorrow.

Thankyou!