tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Schönhaber <mailing-tomcat-...@schoenhaber.de>
Subject Re: Making connector defaault address as 0.0.0.0
Date Tue, 07 Nov 2006 10:46:02 GMT
Mladen Turk wrote:
> With Native connector if the OS supports IPV6 the
> default address (null) is translated to "::", thus
> it only listens to the IPV6 addresses. In case the
> OS doesn't support IPV6 (hardly to be found nowadays), the
> null address is equivalent to the address="0.0.0.0".
> The same is for any Java connector because default is IPV4.

I'm not sure I understand the problem. If you say something like
tcp        0      0 :::8080                 :::*                    LISTEN      
4338/java
means that no IPv4-only host is able to connect, this is not the case - at 
least not on my Linux machine where the above netstat-snippet comes from. I 
can connect to the Tomcat on this Linux box from an IPv4-only XP machine 
using the Linux' IPv4 address without any problems.

BTW: why is this situation special wrt the native connector?

> I would like to make default address as "0.0.0.0" instead
> passing null to the Connector. Well at least to the APR
> connectors, so they behave like Java one.
>
> Anyhow, is there any reason that I'm missing that would
> prevent us to apply the:
> If address property for the connector is undefined
>     set it to the "0.0.0.0"
>
> I personally see no reason how address=null is
> different for address="0.0.0.0"
>
> Comments?

If you really make such a change, please do it in a way that allows me to 
easily revert it. Thanks.

Regards
  mks

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message