Cannot access forwarded ports in apps

After a reboot (I think?) I’m no longer able to access any apps that are using node port forwarding. Apps that are on the host network are fine.

I can access them via the internal (172.16…) IP. For instance, an app with an IP 172.16.14.95 is listening on port 8081. I can curl it both in the pod shell and on the host, but I can’t access it via server_ip:40031 or localhost:40031 (which is the forwaded port that I specified in the options). It just errors out with a connection refused.

How do I fix it?

Edit: If I forward a port manually, it works:

admin@...[~]$ sudo k3s kubectl port-forward -n ix-immich immich-556bf64fb6-z8wxk 30041:30041 &
[1] 119726
admin@...[~]$ Forwarding from 127.0.0.1:30041 -> 30041
Forwarding from [::1]:30041 -> 30041
curl localhost:30041
Handling connection for 30041
<!doctype html>
...

Edit #2: After 20 minutes I come back to it, and all of the ports are working -_-

I think I found the cause for this issue. This occurs when I assign multiple IPs to the server. I can access apps on .4, but not on .1. Also the Web UI says this:

image

In my case, the node IP was set to 0.0.0.0, so both IPs should’ve worked. I changed it to .1, and it seems to be working. I wonder if that’s a bug?