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 22), it says IPv6 but IPv4 works just fine:

sheisey@sheisey-desktop:~$ sudo lsof -Pn -i :81
COMMAND    PID     USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
apache2   1681     root    4u  IPv6  30968      0t0  TCP *:81 (LISTEN)
apache2 173394 www-data    4u  IPv6  30968      0t0  TCP *:81 (LISTEN)
apache2 173395 www-data    4u  IPv6  30968      0t0  TCP *:81 (LISTEN)
sheisey@sheisey-desktop:~$ ip a show br0
3: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether be:3f:67:fc:ce:6b brd ff:ff:ff:ff:ff:ff
inet 192.168.217.210/24 brd 192.168.217.255 scope global dynamic noprefixroute br0
       valid_lft 2396sec preferred_lft 2396sec
    inet6 fe80::bc3f:67ff:fefc:ce6b/64 scope link
       valid_lft forever preferred_lft forever
sheisey@sheisey-desktop:~$ telnet 192.168.217.210 81
Trying 192.168.217.210...
Connected to 192.168.217.210.
Escape character is '^]'.
^]
telnet> quit
Connection closed.

I would suspect something like firewall/selinux/apparmor. On this ubuntu desktop, ufw is disabled, so the connection also works from other systems on the LAN.

Thanks,
Shawn


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

Reply via email to