By igsm
Hi! Can someone explain how to enable remote connection (from my local/client machine) to the the Postgres db which I set on the server?
First, I got this couldn’t connect to server connection refused. Then I tried to edit configurations in
by adding this:
host all all 89.214.182.137/24 trust
and changing ‘localhost’ in
to:
listen_addresses='*'
Still was no result:
sudo iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
hey guys. I’m having a hard time here. I already did the same things you did, undocumenting listen_addresses and all. Still can’t access my database using PGAdmin remotely… any clues?
This comment has been deleted
Did you restart postgres after the change? If so, install lsof and check lsof -i :5432 -n.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.