How is the PostgreSQL connection URL formed, when the host is some other computer than the localhost?
I have allowed PostgreSQL to accept requests from outside.
The following worked for me
const conString = "postgres://YourUserName:YourPassword@YourHostname:5432/YourDatabaseName";