Search Postgresql Archives

Re: cant connect to localhost:5432 (but unix socket ok)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Jain

On Fri, Feb 5, 2021 at 1:16 PM Jain, Ankit <Ankit.Jain@xxxxxxxxxx> wrote:

Did you try modifying the firewall settings ?

 

Add postgres service to the firewall. If that doesn’t work, explicitly open the port 5433 in the firewall.


Anyway, given these settings, "psql -p 5433 -h localhost" should
connect.  If you still get "connection refused" then you need to
look at the kernel firewall (packet filter) settings.

 

yes, with "-p 5433" I can connect

 

It was not necessary to change firewall settings because I was able to connect to the database with the "-p 5433" option

and all is fine now

thanks


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux