# Connection refused for airtime with LT

**URL:** <https://discourse.libretime.org/t/connection-refused-for-airtime-with-lt/887>\
**Category:** Get Help\
**Created:** [April 30, 2021, 5:32pm UTC](https://discourse.libretime.org/t/connection-refused-for-airtime-with-lt/887 "2021-04-30T17:32:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benjamin](https://avatars.discourse-cdn.com/v4/letter/b/3d9bf3/32.png) [@Benjamin](https://discourse.libretime.org/u/Benjamin)\
**Post date:** [April 30, 2021, 5:32pm UTC](https://discourse.libretime.org/t/connection-refused-for-airtime-with-lt/887/1 "2021-04-30T17:32:39Z")

</div>

![error_5432](https://canada1.discourse-cdn.com/flex036/uploads/libretime/original/1X/0fcfd8ee48e1e4f21b89c00f26ce97ed8a081b58.jpeg)  
During the install i have a little problem of connection refused for airtime with LT  
In fact i have this message :  
Couldn’t establish a connection to the database! Please check your credentials and try again. PDO Exception: SQLSTATE[08006] [7] could not connect to server: Connection refused Is the server running on host “[flux.sweet-stations.com](http://flux.sweet-stations.com)” (192.168.1.18) and accepting TCP/IP connections on port 5432?

In local no problem for install with localhost but with a domain name…  
I change the config of postgresql for allow the domain name and the port but nothing change… the same error. My config is ubuntu 18.4/Debian and Virtualmin / Webmin etc.  
Can you help me ?  
Benjamin

---

<div class="post-metadata">

**Author:** ![xabispacebiker](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.libretime.org/xabispacebiker/32/24_2.png) [@xabispacebiker](https://discourse.libretime.org/u/xabispacebiker)\
**Post date:** [April 30, 2021, 10:15pm UTC](https://discourse.libretime.org/t/connection-refused-for-airtime-with-lt/887/2 "2021-04-30T22:15:29Z")

</div>

You are trying to connect to postgres by [flux.sweet-stations.com](http://flux.sweet-stations.com), therefor the system will try to connect from outside… try setting host to localhost.

---

<div class="post-metadata">

**Author:** ![Benjamin](https://avatars.discourse-cdn.com/v4/letter/b/3d9bf3/32.png) [@Benjamin](https://discourse.libretime.org/u/Benjamin)\
**Post date:** [May 1, 2021, 8:29am UTC](https://discourse.libretime.org/t/connection-refused-for-airtime-with-lt/887/3 "2021-05-01T08:29:03Z")

</div>

Yes, xabispacebiker it’s better, thanks i change the host with localhost with the domain name and that’s work in local and online !!! Wouhou i’m very happy 😃
