How to connect to a postgresql database that is in another network?

0

I have a postgresql database installed on a Raspberry Pi on another network. I made the settings inside pg_hba.conf:

host all all 0.0.0.0/0 md5

In postgresql.conf I edited to stay like this

listen_adresses ='*'
port=80

I downloaded pgadmin on the machine I want to connect to but I can not connect to the bank. I think you're making the connection to the bank wrong. In pgadmin I put the static ip to which postgresql was configured (it should be a host hosted in a www domain) and port 5432 that is freed. Should not I be able to connect now? I want to make a php connection to the database server that is on another network outside my domain.

    
asked by anonymous 16.10.2018 / 14:27

0 answers