Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o8AXw-00040a-Pk for pgsql-novice@arkaria.postgresql.org; Mon, 04 Jul 2022 01:06:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o8AXv-00071S-BW for pgsql-novice@arkaria.postgresql.org; Mon, 04 Jul 2022 01:06:39 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o8AXv-00071I-20 for pgsql-novice@lists.postgresql.org; Mon, 04 Jul 2022 01:06:39 +0000 Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o8AXs-0006X1-6m for pgsql-novice@postgresql.org; Mon, 04 Jul 2022 01:06:38 +0000 Received: by mail-qk1-x732.google.com with SMTP id n10so5863291qkn.10 for ; Sun, 03 Jul 2022 18:06:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=HczTaoSj3LNHwz7FPcBvDDjAosS+Yu7NoWMzJSFdOEk=; b=mSmcTFLaVIfs2PdXm5JK+NWQSwXMwZ99cXcwOxRC8jWDeymsw6qqOIEQZVSvmq4w9T +i/wa3oobTFwARdULEgSKdc6BY/pw+J6udMB5LQ69VXAg4LviflN56+drUv41TB2Ihjx UGYCV8LkVi3xN6sg6kya4j4ed3JpQBxCgGFaU43oXM1sPCnm8wbMYnqQ5mJT3BfcxXlp ivI++z3me44KwXgc3nC4XXhdCDllT4YyMIw2Ep6U7hM0ep7Dkrd2AjVGboiG1pz7D1+F Yjqo565Bk2vLYIAU4wKT+X605c1YQH2wbD7BE/3evv3UMX3rHbslqD3YCQqWHPQId/JB mnkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=HczTaoSj3LNHwz7FPcBvDDjAosS+Yu7NoWMzJSFdOEk=; b=mTne93Z0E+qZ/aHh3kdpIw/rgOqzHXE7cwe3Syqh+I7DWIGe7isGOKFy7dpiLR8Knm FAMWclodf991Sd+tgBhAbqtvTm03gB5NvtH/eNHVn8hSo8K4XzQqP8cIifH6eZyDEMsz dyRfmDdyILKCZOOk/1RnCKOOO2UIhnJPLBdZUC+3QKKo7w3nnEWCANkKwd86rqlc485A aR1aXbe3cAAK5ghlDky8BzVWD/FLjnHyfd57zlIybEYyW0M+5MkYupnl5I8/ULoBNqIp mwTo3+RruDiZjxLoDMFg5Ruh6t7xdFt6qSjRY9F37R9TlyI+v4nWW4TP6O1he5km804o OjbQ== X-Gm-Message-State: AJIora8ROgqeyjz7HarPC1x/LosbTt032HWQCwqWN2lb5JOccDuhWaXv 0BaNx8FvFK83vfGTScMvdJAsN2+pyOA= X-Google-Smtp-Source: AGRyM1tP1Y5VhUF87Fx4cliICk8EzqreFOfIC9m5dLNc2M/MHWWCKgu/dAvCkmMJUgL+VI/x75ZbTw== X-Received: by 2002:a05:620a:254c:b0:6a9:9011:3090 with SMTP id s12-20020a05620a254c00b006a990113090mr17361260qko.441.1656896794971; Sun, 03 Jul 2022 18:06:34 -0700 (PDT) Received: from smtpclient.apple (pints.com. [206.248.184.17]) by smtp.gmail.com with ESMTPSA id ff27-20020a05622a4d9b00b0031cc5db5aebsm10064720qtb.85.2022.07.03.18.06.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Jul 2022 18:06:34 -0700 (PDT) From: BeeRich Lists Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Subject: psql: error: could not connect to server: Connection refused Message-Id: <5C6C7AA2-88FF-4F15-B7AC-92B2C2584877@gmail.com> Date: Sun, 3 Jul 2022 21:06:33 -0400 To: Submit Postgresql Novice X-Mailer: Apple Mail (2.3696.100.31) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi folks. I cannot connect to my postgres server. I=E2=80=99ve run = through all the directives and I still can=E2=80=99t understand why this = isn=E2=80=99t showing up. =20 psql: error: could not connect to server: Connection refused Is the server running on host "server1.local" (192.168.1.23) and = accepting TCP/IP connections on port 5432? I cannot find an open port on that box using nmap for ports 5400-6500: Starting Nmap 7.92 ( https://nmap.org ) at 2022-07-03 19:48 EDT Nmap scan report for 192.168.1.23 Host is up (0.00041s latency). All 1101 scanned ports on 192.168.1.23 are in ignored states. Not shown: 1090 filtered tcp ports (no-response), 11 filtered tcp ports = (admin-prohibited) MAC Address: D0:50:99:87:7B:4A (ASRock Incorporation) Nmap done: 1 IP address (1 host up) scanned in 5.94 seconds listen_addresses =3D '*' Here is my effective pg_hba.conf: # TYPE DATABASE USER ADDRESS METHOD local all all = trust host all all 127.0.0.1/32 = md5 local replication all = trust host replication all 127.0.0.1/32 = trust host replication all ::1/128 = trust host all user1 192.168.1.4 = 255.255.255.0 md5 host all user1 192.168.1.24 = 255.255.255.0 md5 host all user1 192.168.1.0/24 = md5 host all all 0.0.0.0/0 = md5 Upon restart/start of the server, it spits this out: Jul 03 18:07:51 server1.project33.ca postmaster[2321]: 2022-07-03 = 18:07:51.206 EDT [2321] LOG: listening on Unix socket = "/var/run/postgresql/.s.PGSQL.5432" Jul 03 18:07:51 server1.project33.ca postmaster[2321]: 2022-07-03 = 18:07:51.213 EDT [2321] LOG: listening on Unix socket = "/tmp/.s.PGSQL.5432" Those directives are the same in the server settings: unix_socket_directories | /var/run/postgresql, /tmp = | Sets the directories where Unix-domain sockets will be created. unix_socket_group | = | Sets the owning group of the Unix-domain socket. unix_socket_permissions | 0777 = | Sets the access permissions of the Unix-domain socket. =20 tcp_keepalives_count | 0 = | Maximum number of TCP keepalive retransmits. tcp_keepalives_idle | 0 = | Time between issuing TCP keepalives. tcp_keepalives_interval | 0 = | Time between TCP keepalive retransmits. tcp_user_timeout | 0 = | TCP user timeout. How I can get this to be visible on the LAN and allow me to connect? For = some reason TCP sockets aren=E2=80=99t showing up, yet I=E2=80=99ve set = listen_addresses to '*'. I can also ssh into the box, so TCP sockets = are running and runctional.=20 Cheers, Bee