fail to connect to PostgreSQL flezi server

Ioan Ferencik 1 Reputation point
2021-11-04T14:37:48.283+00:00

Hello there,

my organization has set up an PostgreSQL Flexiserver and I was have the connection details. However i am just getting Connection Timed out error

from psql

psql: error: could not connect to server: Connection timed out
Is the server running on host "undp-ngd-psql-gishub-01-dev.postgres.database.azure.com" (20.93.204.131) and accepting
TCP/IP connections on port 5432?

Any suggestions?

Azure Database for PostgreSQL
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Oury Ba-MSFT 20,911 Reputation points Microsoft Employee Moderator
    2021-11-05T17:02:13.86+00:00

    Hi @Ioan Ferencik Thank you for posting your Question on Microsoft Q&A.

    Please Check the status of PostgreSQL server. And try to restart the PostgreSQL server. It should work

    Are you connecting through Private access (VNet integration) – or Public access (allowed IP addresses)

    Regards,
    Oury


  2. Ioan Ferencik 1 Reputation point
    2021-11-08T20:44:26.857+00:00

    Hello @Oury Ba-MSFT , thanks for asking. It turns out I was getting blocked by the firewall of my organization.

    Everything is in order now.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.