Christoph,

On 11/30/15 8:20 AM, Christoph P.U. Kukulies wrote:
> Am 30.11.2015 um 12:12 schrieb Mark Thomas:
>> On 30/11/2015 10:51, Christoph P.U. Kukulies wrote:
>>> I installed tomcat7 (apt-get) on an Ubuntu 14.04.3 LTS machine and found
>>> it being installed as listening
>>> to
>>>
>>> tcp6      0        0     :::8080         :::*                 LISTEN
>>>
>>> How can I turn that to
>>>
>>> tcp        0      0 0.0.0.0:8080            0.0.0.0:* LISTEN
>>>
>>>
>>> Do I have to disable ipv6 in Ubuntu first or can I switch that by
>>> tweaking some config file or so?
>> Try setting the address attribute of the connector to "0.0.0.0"
>>
>> Mark
>>
> You mean in server.xml: in the <Connector />  section address="0.0.0.0" ?
> Doesn't seem to work.
> 
> I finally got rid of it by adding the lines
> 
> |net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 =
> 1 net.ipv6.conf.lo.disable_ipv6 = 1 to /etc/sysctl.conf and rebooted
> Ubuntu. |

You should not have to disable IPv6 across the whole machine in order to
bind to the IPv4 interface.

Post your address="0.0.0.0" configuration. How did you verify the
behavior after the change?

Did you also try CATALINA_OPTS="-Djava.net.preferIPv4Stack=true"?

-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to