Can’t connect to local PostgresSQL server
Since your local psql session just works, your database is OK. Your other sessions try to connect using network. Things to check here are the listen_addresses and port parameters to be found in your postgres.conf They must match with what the clients specify.
Next to that, your firewalls must allow the access. For your local firewall check your settings Security and Privacy settings. There is a good chance that there is a question asking to allow your postmaster to connect to the network.