Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
How to connect remotely to the Postgres DB on the server from the local/client machine?
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 126.96.36.199/24 trust
and changing ‘localhost’ in
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
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×