Hi Chris,

it is (was) in server.xml: (I now only have tomcat listening on port 8009 proxy_ajp)


<Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               URIEncoding="UTF-8"
               address="0.0.0.0" redirectPort="8443" />

I then did a
service tomcat7 restart
netstat -an | grep 8080


and saw tcp6 still listed and no tcp

Now it look like this: (after enabling ipv6 in sysctl.conf again):

tcp        0      0 127.0.0.1:49393 127.0.0.1:8009          ESTABLISHED
tcp        0      0 127.0.0.1:49395 127.0.0.1:8009          ESTABLISHED
tcp6       0      0 :::8009 :::*                    LISTEN
tcp6       0      0 127.0.0.1:8009 127.0.0.1:49395         ESTABLISHED
tcp6       0      0 127.0.0.1:8009 127.0.0.1:49393         ESTABLISHED



Am 30.11.2015 um 19:01 schrieb Christopher Schultz:
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"?

No, did not try this but will do so.
Cheers,

Christoph



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

Reply via email to