I have a fresh install of Ubuntu 22.04 Desktop on which I want to run public services (postgreSQL, redis, etc.) to access from other hosts. I configured each service to bind (listen) to the static IP 192.168.1.xxx as well as localhost, started them, and they work.
When I restart the computer, these services are not listening on 192.168.1.xxx, only on localhost/127.0.0.1. When I restart the service, it binds to all addresses. No changes. No Firewall. SSH does connect via the IP address. Here is a paste of the Redis example run locally immediately after a reboot.
% sudo ufw status
Status: inactive
% redis-cli -h 192.168.1.200
Could not connect to Redis at 192.168.1.200:6379: Connection refused
not connected>
% redis-cli -h 127.0.0.1
127.0.0.1:6379>
% redis-cli -h localhost
localhost:6379>
% sudo lsof -i :6379
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
redis-ser 3004 redis 6u IPv4 35436 0t0 TCP localhost:redis (LISTEN)
redis-ser 3004 redis 7u IPv6 35437 0t0 TCP ip6-localhost:redis (LISTEN)
% sudo service redis-server restart
% sudo lsof -i :6379
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
redis-ser 14396 redis 6u IPv4 67757 0t0 TCP localhost:redis (LISTEN)
redis-ser 14396 redis 7u IPv6 67758 0t0 TCP ip6-localhost:redis (LISTEN)
redis-ser 14396 redis 8u IPv4 67759 0t0 TCP server:redis (LISTEN)
% redis-cli -h 192.168.1.200
192.168.1.200:6379>
What would be preventing the services from binding to public IP addresses during boot? Anthing to do with it being a desktop install? Thank you in advance for you time!