# PostgreSQL "connection terminated" - quite frustrated :/

**URL:** <https://talk.observablehq.com/t/postgresql-connection-terminated-quite-frustrated/3287>\
**Category:** Help\
**Created:** [May 14, 2020, 4:28am UTC](https://talk.observablehq.com/t/postgresql-connection-terminated-quite-frustrated/3287 "2020-05-14T04:28:11Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![nachocab](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/nachocab/32/2426_2.png) [@nachocab](https://talk.observablehq.com/u/nachocab)\
**Post date:** [January 16, 2021, 8:11pm UTC](https://talk.observablehq.com/t/postgresql-connection-terminated-quite-frustrated/3287/3 "2021-01-16T20:11:14Z")

</div>

Hey, JP.

If your DB is in a VPS, you should change your configuration to that IP address.

My DB is running in a VPS, so my proxy is running at `http://MY_IP:2899` (I see “Database proxy my-db-name (postgres) running at http://MY\_IP:2899” in my server) and my database connection string is `postgresql://user:password@127.0.0.1:5432/my-db-name` (I can confirm that this works by running this from the server `psql <MY CONNECTION STRING>`).

If I go to http://MY\_IP:2899 on the browser I see a 401 error (as I should), but when I run the “Test connection” from Observable, I don’t see any connection attempt in the log, just this error “Connection terminated unexpectedly”:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/observablehq/original/2X/3/3a623cdd23a97d4dab259f3afad4e8fe1d9b2f00.png)

@visnup Any suggestions on how to debug this?

---

_[View the full topic](https://talk.observablehq.com/t/postgresql-connection-terminated-quite-frustrated/3287)._
