# Connection timed out issue while trying to connect postgres database

**URL:** <https://community.grafana.com/t/connection-timed-out-issue-while-trying-to-connect-postgres-database/38558>\
**Category:** General\
**Tags:** postgres\
**Created:** [October 28, 2020, 3:55pm UTC](https://community.grafana.com/t/connection-timed-out-issue-while-trying-to-connect-postgres-database/38558 "2020-10-28T15:55:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lcharles](https://avatars.discourse-cdn.com/v4/letter/l/c57346/32.png) [@lcharles](https://community.grafana.com/u/lcharles)\
**Post date:** [October 28, 2020, 3:55pm UTC](https://community.grafana.com/t/connection-timed-out-issue-while-trying-to-connect-postgres-database/38558/1 "2020-10-28T15:55:21Z")

</div>

Hello!

I’m new here and I’m trying to connect my postgres DB to grafana.  
I have an issue trying to connect it. The error message is : “dial tcp 192.168.10.48:5433: connect: connection timed out”  
I have filled the parameters of the connexion as followed:

 ![image](https://us1.discourse-cdn.com/grafana/original/2X/6/676f1ccaf577b78502d1a5b338ce1eb1dac17efd.png)  
I think the parameters are the good ones because when I enter them in the postgres SQL shell, I manage to see the datas.  
I don’t use docker.

I have seen other topic on this issue but I haven’t found someting that really helped me to solve the problem.

Thanks.

---

<div class="post-metadata">

**Author:** ![rodrigoramos1](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/rodrigoramos1/32/12612_2.png) [@rodrigoramos1](https://community.grafana.com/u/rodrigoramos1)\
**Post date:** [October 31, 2020, 7:07am UTC](https://community.grafana.com/t/connection-timed-out-issue-while-trying-to-connect-postgres-database/38558/2 "2020-10-31T07:07:57Z")

</div>

Have you tested with tenet-like or nmap-like tools in order to guarantee network openness?

I mean, assure that you can reach .48 server by port 5453 from your Grafana server.

Regards.

---

<div class="post-metadata">

**Author:** ![lcharles](https://avatars.discourse-cdn.com/v4/letter/l/c57346/32.png) [@lcharles](https://community.grafana.com/u/lcharles)\
**Post date:** [November 2, 2020, 4:41pm UTC](https://community.grafana.com/t/connection-timed-out-issue-while-trying-to-connect-postgres-database/38558/3 "2020-11-02T16:41:58Z")

</div>

Thanks for your help!  
I just installed nmap tool and tried to scan my IP adress from it.  
Indeed I can’t reach this IP.  
Do you know how I could solve it?  
Sorry I’m a begginer and I don’t feel comfortable with network configuration…

---

<div class="post-metadata">

**Author:** ![pooh](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@pooh](https://community.grafana.com/u/pooh)\
**Post date:** [November 2, 2020, 5:48pm UTC](https://community.grafana.com/t/connection-timed-out-issue-while-trying-to-connect-postgres-database/38558/4 "2020-11-02T17:48:57Z")

</div>

Your best bet at this point is probably to ask whomever does manage the  
network you’re working on.

Antony.

---

<div class="post-metadata">

**Author:** ![rodrigoramos1](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/rodrigoramos1/32/12612_2.png) [@rodrigoramos1](https://community.grafana.com/u/rodrigoramos1)\
**Post date:** [November 2, 2020, 6:29pm UTC](https://community.grafana.com/t/connection-timed-out-issue-while-trying-to-connect-postgres-database/38558/5 "2020-11-02T18:29:16Z")

</div>

Depends on who administers the network and servers. If you have under your tasks these roles, you could check your Grafana server firewall rules in order to open it to connect to Postgres. if you have an external FW you have the analogous procedure until the Postgres server.

Ensure that both servers have the right network channels (for example, VLANs) or whether are in the same network.
