users@glassfish.java.net

Binding to a given IP address working only for some ports

From: <forums_at_java.net>
Date: Thu, 19 Jan 2012 11:40:40 -0600 (CST)

I am trying to bind my Glassfish instance only to a given IP address (my
machine has many). I therefore changed the "address" property of the
listeners in domain.xml Relevant entries (with 127.0.0.1 as example): [code]
[/code] This works for some ports (8181,4848,8080,3700,8686) but not for the
others. This is the output of lsof: [code] java 28568 corti 337u IPv6
0xffffff8017ae0cc0 0t0 TCP 127.0.0.1:8181 (LISTEN) java 28568 corti 340u IPv6
0xffffff8017ae1800 0t0 TCP 127.0.0.1:4848 (LISTEN) java 28568 corti 342u IPv6
0xffffff8017aefd80 0t0 TCP 127.0.0.1:8080 (LISTEN) java 28568 corti 346u IPv6
0xffffff8015c13900 0t0 TCP 127.0.0.1:3700 (LISTEN) java 28568 corti 350u IPv6
0xffffff8017ae0540 0t0 TCP *:7676 (LISTEN) java 28568 corti 385u IPv6
0xffffff8015c14f80 0t0 TCP *:3820 (LISTEN) java 28568 corti 386u IPv6
0xffffff8015c13540 0t0 TCP *:3920 (LISTEN) java 28568 corti 394u IPv6
0xffffff80150e1ac0 0t0 TCP *:7776 (LISTEN) java 28568 corti 395u IPv6
0xffffff80150e1e80 0t0 TCP *:54198 (LISTEN) java 28568 corti 400u IPv6
0xffffff801516e180 0t0 TCP *:54202 (LISTEN) java 28568 corti 401u IPv6
0xffffff801475c440 0t0 TCP *:54203 (LISTEN) java 28568 corti 402u IPv6
0xffffff8017ae7600 0t0 TCP *:54204 (LISTEN) java 28568 corti 409u IPv6
0xffffff801516f800 0t0 TCP 127.0.0.1:8686 (LISTEN) [/code] Any hint on how to
force Glassfish to bind only to one network interface? Thanks Matteo

--
[Message sent by forum member 'corti']
View Post: http://forums.java.net/node/882839