client connection refused

I'm using bun. I was able to get the pool connection working, but the same connection configuration for the client connection option fails with a "error: Failed to connect" /n "code: "ECONNREFUSED". Any ideas?