users@glassfish.java.net

Re: How do I configure iiop listener for ipv6

From: Harshad Vilekar <harshad.vilekar_at_oracle.com>
Date: Tue, 11 Oct 2011 16:55:36 -0700

On 10/06/2011 04:32 AM, Dipl.-Ing. Torsten Liermann wrote:
> Hi,
>
> on my glassfish installation there are net services like jmx, jms listening on all ipv4 and ipv6 interfaces:
>
> TCP 0.0.0.0:8686 0.0.0.0:0 LISTEN
> TCP [::]:8686 [::]:0 LISTEN
>
> TCP 0.0.0.0:7676 0.0.0.0:0 LISTEN
> TCP [::]:7676 [::]:0 LISTEN
>
> How do I have to setup the iiop listener for ipv6 and ipv4?
>
> A configuration like:
>
> <iiop-listener
> port="3700"
> id="orb-listener-1"
> address="0.0.0.0"
> lazy-init="true"></iiop-listener>
>
> will only bind the iiop listener on all ipv4 interfaces.


This setting works OK on my system:

<iiop-listener port="3700" id="orb-listener-1" address="::"
lazy-init="true"></iiop-listener>

netstat shows:

tcp 0 0 :::3700
:::* LISTEN


> When I try an address syntax like "[::]" or "::" it does not work.

Do you see any error in the server log ?

Harshad.

> Thanks for a hint
> Torsten
>