Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

My database is hosted on my droplet. I am trying to connect to the database and insert some records programmatically from python, from my dev machine (Windows).
Here is my connect attempt via code. I am running this from my dev machine on Windows.
prod_conn = pg8000.connect(
host='xxxx',
port=5432,
database='xxxx',
user='xxxx',
password='xx'
)
Telnet to the ip, psql to the ip, pg8000.connect , psycopg2.connect , all give the same error.
connection to server at "xxxx", port 5432 failed: Connection timed out (0x0000274C/10060)
Is the server running on that host and accepting TCP/IP connection?
my ip address is allowed from firewall. pg_hba.conf has my dev ip mentioned as host all all ip_address/32 md5 postgresql.conf has listen_addresses = ‘*’ so what can I do to connect via a program?
I am able to connect to the database via ssh tunnel from my dev machine. I also checked the firewall of the droplet. There are no rules set there. Do I have to explicitly set it to allow connection to 5432? Any advice is appreciated.
44698b4d25054ea6a464f4a5215a7b
dolphinnnn
phosphide
xcco3x
Ross
Telmo Valverde
Alexandre Herlinvaux
Lukas Ulrich
72e659fde73744d381097f36c2b3ad
fullammo
StrugglingDeveloper
perbak