Forums

Problems with access to postgres locally

Django says: django.db.utils.OperationalError: could not connect to server: Connection timed out (0x0000274C/10060) Is the server running on host "Konstantin05-2676.postgres.pythonanywhere-services.com" (10.0.0.35) and accepting TCP/IP connections on port 12676? firewall is off. everything works on server. password is the same. settings are the same. Why do I get this?

antivirus is also off

We do not expose user databases to the internet. See https://help.pythonanywhere.com/pages/AccessingPostgresFromOutsidePythonAnywhere/

Ok, thank you for the link. But I'm still doing something wrong. E. g. PuTTy: 1) enter ssh.pythonanywhere.com in hostname 2) enter source port 8000 in tunnels 3) enter destination Konstantin05-2676.postgres.pythonanywhere-services.com:12676 in tunnels Finally I got "connection timed out" without login and password

I do not see any connection attempts for your username, so I suspect that you have an anti-virus or firewall on your machine or in your network that is preventing the connection from being made. Make sure that you are able to connect using SSH first: https://help.pythonanywhere.com/pages/SSHAccess/

i turned antivirus and firewall off. i contacted my provider and they said that they have no limits with SSH i read guide and got:
C:\Users\Brux>ssh konstantin05@ssh.pythonanywhere.com <<<<<<:>~ PythonAnywhere SSH. Help @ https://help.pythonanywhere.com/pages/SSHAccess konstantin05@ssh.pythonanywhere.com's password: Last login: Sat Jun 11 21:02:17 2022 from 5.181.202.231 Last login: Sat Jun 11 21:02:17 2022 from 5.181.202.231 Connection to ssh.pythonanywhere.com closed. Does this message mean that connection is OK?

Do you get the prompt?