On Sun, 2012-07-22 at 11:21 -0700, k9...@operamail.com wrote:
> On Sun, Jul 22, 2012, at 02:08 PM, Tim Watts wrote:
> > By default, Tomcat will listen on port 8080 on all available addresses
> > (IPv6 and 4, barring configuration settings at the OS level).  The key
> > "word" in those java.net properties is "prefer" (i.e. not "require").
> > So the door is still open to IPv6 even with these properties.
> 
> 
> I still would presume that, given the specification of "prefer", when
> localhost is referenced, given the choice of either IPv4 or IPv6 in a
> functional dual-stack, that it *would* prefer and select IPv4, i.e.,
> 127.0.0.1.
> 
But doing so would close the door on ::1, turning "prefer" into
"require".  Whereas binding on ::* allows both IPv6 & 4 in.  I guess
what's confusing in all this is that the "preferences" just deal with
"outbound" addresses and connections (e.g. preferIPv4Stack means the JVM
will send out IPv4 packets etc.).

It's worth noting that, even if it did behave this way, you would still
have needed to specify the loopback address.  Otherwise Tomcat would
have been accessible on any IPv4 address configured on the node.  Just
setting those properties would never have been sufficient for what you
were really after.

> apparently, not the case.
> 
> clarification noted.
> 
> cheers.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to