hi!
Ive just upgraded to kubuntu 16.04. Previously i ran 14.04 with a working postgres server.
i am trying to setup a postgresql server in such a way that every computer on my lan can access it. Installation through apt-get went smooth. And ive got a server running
on 127.0.0.1 which i can query and can connect to. Tried command line as well as pgadmin 3. Now i want to grant access for all the computers on the 192.168.0 subnet.
I changed the postgres.conf, and added: "listen_addresses = '*'" at the end. And then added "host all all 192.168.0.0/24 md5" to the pg_hba.conf file (both without the quotes).
Restarted the server. But now i cant connect anymore. Not trough command line not using pgadmin3. Even telnet 127.0.0.1 5432 results in connection refused. l
If i leave postgres.conf untouched ( so leaving the list_addresses = * line) but change the pg_hba.conf file back to its original state i can connect again using 127.0.0.1. But i cant
connect from another p.c. Or from the same pc, but changing the 127.0.0.1 to its lan ip ( 192.168.0.100).
I also tried to add the line: host all all 192.168.0.100 md5
but also then telnet 192.168.0.100 5432 gives connection refused.
Any suggestions?
Ive just upgraded to kubuntu 16.04. Previously i ran 14.04 with a working postgres server.
i am trying to setup a postgresql server in such a way that every computer on my lan can access it. Installation through apt-get went smooth. And ive got a server running
on 127.0.0.1 which i can query and can connect to. Tried command line as well as pgadmin 3. Now i want to grant access for all the computers on the 192.168.0 subnet.
I changed the postgres.conf, and added: "listen_addresses = '*'" at the end. And then added "host all all 192.168.0.0/24 md5" to the pg_hba.conf file (both without the quotes).
Restarted the server. But now i cant connect anymore. Not trough command line not using pgadmin3. Even telnet 127.0.0.1 5432 results in connection refused. l
If i leave postgres.conf untouched ( so leaving the list_addresses = * line) but change the pg_hba.conf file back to its original state i can connect again using 127.0.0.1. But i cant
connect from another p.c. Or from the same pc, but changing the 127.0.0.1 to its lan ip ( 192.168.0.100).
I also tried to add the line: host all all 192.168.0.100 md5
but also then telnet 192.168.0.100 5432 gives connection refused.
Any suggestions?
Comment