Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1
philip
On 11/1/14, 7:56 AM

Step 1.

Add the following line to the pg_hba.conf server. This will allow connection from “192.168.0.100″ ip-address (This is the client ip address in our example). 

postgres 9.3

# vi /etc/postgresql/9.3/main/pg_hba.conf 

host all all 192.168.0.100/24 trust

postgres 9.1

# vi /etc/postgresql/9.1/main/pg_hba.conf 

host all all 192.168.0.100/24 trust

If you want to allow connection from any client machines on your network, specify the network address here in the CIDR-address format.

host all all 192.168.0.0/24 trust

Step 2.

On the PostgreSQL database server, by default, the listen address will be localhost in the postgresql.conf file as shown below.

# grep listen /etc/postgresql/9.1/main/postgresql.conf 

       #listen_addresses = 'localhost'

Modify this line and give *. If you have multiple interfaces on the server, you can also specify a specific interface to be listened.

# vi /etc/postgresql/9.1/main/postgresql.conf

      listen_addresses = '*'

Step 3.

service postgresql restart

0
AMITS
On 11/1/14, 2:06 PM

By default PostgreSQL does not allow remote servers to connect to it. So, you will have to allow your IP address in the trust IP list.  If you have dynamic IP address which keeps on changing then you will have to keep on updating the IP address.

And if I want to allow any IP adress to connect, I'll avoid changing IP adress, But this is a security issue.

Yassine TEIMI
on 11/17/14, 9:50 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 11/1/14, 5:28 AM
Seen: 2187 times
Last updated: 3/16/15, 8:10 AM