I have just installed Postgresql 9.1 on windows server 2008. I was trying to connect it from the remote computer on the default port 5432(as I have not changed it), but was not successful. So what are the possible configuration settings changes to made?
Share
You need to update some configuration files. They will be in a sub directory of your postgresql install in the data directory. On Windows most likely
C:\Program Files\PostgreSQL\9.1\dataYou need to update your
postgres.conffile tolisten_addresses = '*'so the postgres service can be seen by other machines. See 18.3. Connections and Authentication.To let any machine connect to postgres
pg_hba.conf. The0.0.0.0/0says let any ip address connect. You can trim this down so it’s only ip ranges on your network. See 19.1. The pg_hba.conf File.