Why does my postgres 16 after setting up a remote connection?

ConnectionRefusedError [SequelizeConnectionRefusedError]: connect ECONNREFUSED 127.0.0.1:5432
0|index    |     at Client._connectionCallback (/home/root/"Mydatabase"/node_modules/sequelize/lib/dialects/postgres/connection-manager.js:131:24)
0|index    |     at Client._handleErrorWhileConnecting (/home/root/"Mydatabase"/node_modules/pg/lib/client.js:327:19)
0|index    |     at Client._handleErrorEvent (/home/root/"Mydatabase"/node_modules/pg/lib/client.js:337:19)
0|index    |     at Connection.emit (node:events:517:28)
0|index    |     at Socket.reportStreamError (/home/root/"Mydatabase"/node_modules/pg/lib/connection.js:58:12)
0|index    |     at Socket.emit (node:events:517:28)
0|index    |     at emitErrorNT (node:internal/streams/destroy:151:8)
0|index    |     at emitErrorCloseNT (node:internal/streams/destroy:116:3)
0|index    |     at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
0|index    |   parent: Error: connect ECONNREFUSED 127.0.0.1:5432
0|index    |       at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1549:16) {
0|index    |     errno: -111,
0|index    |     code: 'ECONNREFUSED',
0|index    |     syscall: 'connect',
0|index    |     address: '127.0.0.1',
0|index    |     port: 5432
0|index    |   },
0|index    |   original: Error: connect ECONNREFUSED 127.0.0.1:5432
0|index    |       at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1549:16) {
0|index    |     errno: -111,
0|index    |     code: 'ECONNREFUSED',
0|index    |     syscall: 'connect',
0|index    |     address: '127.0.0.1',
0|index    |     port: 5432
0|index    |   }
0|index    | }

local all all peer

host all all 127.0.0.1/32 ident

host all all ::1/128 ident

local replication all peer

host replication all 127.0.0.1/32 ident

host replication all ::1/128 ident

listen_addresses = ‘*’