There is PostgreSQL 9.2 in Debian. My /etc/postgresql/9.2/main/postgresql.conf
file contains:
listen_addresses = '127.0.0.0, 212.49.109.137'
password_encryption = on
’212.49.109.137′ is the IP of the computer running PostgreSQL.
/etc/postgresql/9.2/main/pg_hba.conf
contains:
host all all 85.12.201.202 255.255.255.0 md5
85.12.201.202 is the IP address of the client that tries to connect. I try to connect using:
psql -h 212.49.109.137 -U postgres -d postgis_template
And get error:
psql: could not connect to server: Timeout
Is the server running on host "212.49.109.137" and accepting
TCP/IP connections on port 5432?
In netstat -pln
i see:
tcp 0 0 127.0.0.0:5432 0.0.0.0:* LISTEN 5127/postgres