Windows DatabaseebooksStatistical Information

LLE10216 : Howto make shure postgres will listen on the network

Symptom:

Postgresql listens per default on localhost. To change this you need to configure it in postgresql.conf

Cause:

none

Solution:

On a debian system you will find your configuration files in e.g.

/etc/postgresql/8.3/main/

As you can see, the path depends on the version of postgres you are using. To make postgres listen on all your network cards you will have to change the default configuration which only listens on localhost connections.

You should look for the listen_addresses and port entries.

To make postgres listen on all your ip addresses you will have to set listen_addresses to:

...
listen_addresses = '*'
port = 5432
...

You could also change the default port to listen on! If you try to make a connection, it will probably be refused. Your error message has changed, but it does not work yet. This is due to the default pg_hba.conf. You will have to make changes here too!

Disclaimer:

The information provided in this document is intended for your information only. Lubby makes no claims to the validity of this information. Use of this information is at own risk!
Copyright © 2004-2011 Lubby (V3.0.10 Aug 2011)
Sponsored by Keskon.
Statistical information by Google Analytics