psycopg2.OperationalError: connection to server at "myserver.mysql.pythonanywhere-services.com" (IP), port 5432 failed: Connection timed out (0x0000274C/10060) Is the server running on that host and accepting TCP/IP connections? Here is the error when running the code Does pythonanywhere have any amazon-like security settings, something like blocking ports before packets reach the server itself?