I tried everything, as mentioned in the post, and as I found out, my cat used IPv6 instead of IPv4, I also modified this edit /etc/sysctl.conf with the following configuration changes:
net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1
After saving, I ran the command "sudo sysctl -p" to restart sysctl. He changed IPv6 to IPv4 after restarting tomcat. Confirmed
(Before) $ sudo lsof -i: 8080 -n
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME java 4224 tomcat 46u IPv6 15733 0t0 TCP *:webcache (LISTEN)
(After) $ sudo lsof -i: 8080 -n
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME java 4414 tomcat 46u IPv4 16364 0t0 TCP *:webcache (LISTEN)
I hope this helps someone encounter a similar problem!
Rbh
source share