Re: Tomcat9 not listening to ipv4 port 8080, only ipv6

2023-11-28 Thread Simon Matter
Hi, > Christoph, > > On 11/28/23 09:53, Christoph Kukulies wrote: >> That was my connector: >> >>  >                connectionTimeout="2" >>                redirectPort="8443" /> >> >> I triednetstat -tulpn as well and it could be seen there was  no >> listener under ip4 and port 8080. > >

Re: Tomcat9 not listening to ipv4 port 8080, only ipv6

2023-11-28 Thread Christopher Schultz
Christoph, On 11/28/23 09:53, Christoph Kukulies wrote: That was my connector:   I triednetstat -tulpn as well and it could be seen there was  no listener under ip4 and port 8080. If you use the "address" attribute, you can pick the interface you will listen to: " [address] For

Re: Tomcat9 not listening to ipv4 port 8080, only ipv6

2023-11-28 Thread Shawn Heisey
On 11/28/23 05:24, Christoph Kukulies wrote: root@mail:/var/lib/tomcat9/logs# lsof -i :8080 COMMAND   PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME java    58986 tomcat   37u  IPv6 571175      0t0  TCP *:http-alt (LISTEN) root@mail:/var/lib/tomcat9/logs# On my local desktop (running Ubuntu

Re: Tomcat9 not listening to ipv4 port 8080, only ipv6

2023-11-28 Thread Christoph Kukulies
Hi Christopher, That was my connector: I tried netstat -tulpn as well and it could be seen there was no listener under ip4 and port 8080. Thanks, -- Christoph > Am 28.11.2023 um 15:15 schrieb Christopher Schultz > : > > Christoph, > > On 11/28/23 08:26, Christoph Kukulies wrote: >>

Re: Tomcat9 not listening to ipv4 port 8080, only ipv6

2023-11-28 Thread Christopher Schultz
Christoph, On 11/28/23 08:26, Christoph Kukulies wrote: not that I kew of (changes in JVM arguments). I will try your suggestion: -Djava.net.preferIPv4Stack=true and thanks, it helped: I put it into /etc/defaults/tomcat9 (under Ubuntu 22.04) JAVA_OPTS="-Djava.awt.headless=true

Re: Tomcat9 not listening to ipv4 port 8080, only ipv6

2023-11-28 Thread Christoph Kukulies
Hi Suvendu, not that I kew of (changes in JVM arguments). I will try your suggestion: -Djava.net.preferIPv4Stack=true and thanks, it helped: I put it into /etc/defaults/tomcat9 (under Ubuntu 22.04) JAVA_OPTS="-Djava.awt.headless=true -Djava.net.preferIPv4Stack=true" and now I have:

Re: Tomcat9 not listening to ipv4 port 8080, only ipv6

2023-11-28 Thread Suvendu Sekhar Mondal
Hello Christoph, On Tue, Nov 28, 2023, 5:55 PM Christoph Kukulies wrote: > I'm pulling my hairs on a suddenly occured - possibly - misconfiguration. > But I can't find it out: > > catalina.2023-11-28.log: > > > 28-Nov-2023 13:15:43.742 INFO [main] >

Tomcat9 not listening to ipv4 port 8080, only ipv6

2023-11-28 Thread Christoph Kukulies
I'm pulling my hairs on a suddenly occured - possibly - misconfiguration. But I can't find it out: catalina.2023-11-28.log: 28-Nov-2023 13:15:43.742 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name: Apache Tomcat/9.0.58 (Ubuntu) 28-Nov-2023 13:15:43.743