Re: [jgroups-users] problem with v4.0.16 and IPv6
Questions/problems related to using JGroups <[email protected]> Mon, 29 Apr 2019 13:04:50 -0400
| Newsgroups | gmane.comp.java.javagroups.general |
|---|---|
| Message-ID | <mailman.40154.1556557536.1332.javagroups-users@lists.sourceforge.net> |
--===============4245446926204142940== Content-Type: multipart/alternative; boundary="00000000000076d9550587ae4a32" --00000000000076d9550587ae4a32 Content-Type: text/plain; charset="UTF-8" On Thu, Apr 25, 2019 at 3:28 AM Questions/problems related to using JGroups <[email protected]> wrote: > The default in JGroups is IPv4, so you have to force use of IPv6. The > program below shows you how to do this. > > Start it with system property -Djava.net.preferIPv6Addresses=true and > this will work. > Thanks. With that property it's working for me. Since users of our product can set the bind address and many other things (and will forget this detail), will have to put a little code into our "launcher" process to add that property at actual app startup if it sees an ipv6 address is being used. Something like: if (InetAddress.getByName("<bind address>") instanceof Inet6Address) { etc } Am nervous that some case may fail the above check though. Can you tell me what happened between jgroups 4.0.15 and 4.0.16 that made our app not work with ipv6 addresses without that JVM property? When I run the above without it the check works as I'd expect. Thanks, Bobby --00000000000076d9550587ae4a32 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><br></div><div class=3D"= gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Thu, Apr 25, 2019 at = 3:28 AM Questions/problems related to using JGroups <<a href=3D"mailto:j= [email protected]">[email protected]= et</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margi= n:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex= ">The default in JGroups is IPv4, so you have to force use of IPv6. The <br= > program below shows you how to do this.<br> <br> Start it with system property -Djava.net.preferIPv6Addresses=3Dtrue and <br= > this will work.<br></blockquote><div><br></div><div>Thanks. With that prope= rty it's working for me. Since users of our product can set the bind ad= dress and many other things (and will forget this detail), will have to put= a little code into our "launcher" process to add that property a= t actual app startup if it sees an ipv6 address is being used. Something li= ke:</div><div><br></div><div>if (InetAddress.getByName("<bind addre= ss>") instanceof Inet6Address) { etc }</div><div><br></div><div>Am = nervous that some case may fail the above check though. Can you tell me wha= t happened between jgroups 4.0.15 and 4.0.16 that made our app not work wit= h ipv6 addresses without that JVM property? When I run the above without it= the check works as I'd expect.</div><div><br></div><div>Thanks,</div><= div>Bobby</div><div><br></div></div></div></div> --00000000000076d9550587ae4a32-- --===============4245446926204142940== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============4245446926204142940== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ javagroups-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/javagroups-users --===============4245446926204142940==--