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 1klVzF-0003Dh-B0 for pgsql-general@arkaria.postgresql.org; Sat, 05 Dec 2020 11:44:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1klVzD-0005kZ-3E for pgsql-general@arkaria.postgresql.org; Sat, 05 Dec 2020 11:44:23 +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 1klVzC-0005kS-2A for pgsql-general@lists.postgresql.org; Sat, 05 Dec 2020 11:44:22 +0000 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1klVz9-0005h4-F9 for pgsql-general@lists.postgresql.org; Sat, 05 Dec 2020 11:44:20 +0000 Received: by mail-ej1-x62d.google.com with SMTP id m19so12515623ejj.11 for ; Sat, 05 Dec 2020 03:44:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=6onBxOqzxDg/MbJOYuGXYd46sUrSEgPjSjFgeZrTtSs=; b=PI4nP3jhHgRpV/SjzK92jlKXwolrFevu/vh4lKBKjl5lkTvVS1oWagV5pmI3gchEEO /l4FgOs1GhPPNA/2WallbudCGmjwX+VFsvXQcBFOtkSSskB82lw8IF2uJqGDdXKB8cwp 2ndAJXHAg1+IcwCkcYH3ypp8rMbQZSng1nU3aIVCyjbUoEAk/lAxeeECGuZqJXGquZBy 0QJEi7KJlV+jSfggmpGNko5h1B53SV1n9dhBZKIwiojcgeEMjyIxH7vkOevlFlcSpEx0 ISbvPgVe1NutynSyO82xS27V4fv114kDunwqknGlsIDXHSOBzD+GCu9ObRKP6qfj421R gsDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=6onBxOqzxDg/MbJOYuGXYd46sUrSEgPjSjFgeZrTtSs=; b=Njb0pw6uUcMQfc1uZBY+l1AO/aqW+ATmxq6A9Xh7E2mGuP0PqATJkdeObwUAsA6JNo 351yCEf2leHRc2OWlQyZ2zlMeFZ6NxZwH1t0gYGap+UddxXitfIoBM8VyRrOSkjrGkmW BDApK/Bf67f9U77fnO5dC6NTajMNLsABV+QZ0Bypk8/AgaDbvjRx7+PHRJQEsAUQA7iX ZIfeVG641EC13ZvBxpk+6EaGGttqoXClgKTzmJzaz6Okv6pJpAO2KQltSbxiCPF2PL6p sp+gNVHok0SaCw/R0NOIcPVwRDhQCahmhOHO9HMXjCZqyD15RJrk28Xo320XenYxcUrZ BCDA== X-Gm-Message-State: AOAM533mROYYlEh33/cuMcVcqRpo4buZB8YZ6WgPApcydv1bdUHMj++3 sVjIaO7xsniXfKGfltiXbAk= X-Google-Smtp-Source: ABdhPJy9XyC9Jb2u0JWXgGkh4WvhZgK+R3ENcfHxigSb9hnLDaH8r3SaJDTy7vJB6x4izRp8QjMaag== X-Received: by 2002:a17:907:373:: with SMTP id rs19mr9291869ejb.298.1607168658076; Sat, 05 Dec 2020 03:44:18 -0800 (PST) Received: from hollewijn.internal (217-19-30-105.dsl.cambrium.nl. [217.19.30.105]) by smtp.gmail.com with ESMTPSA id s5sm4937391eju.98.2020.12.05.03.44.16 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Dec 2020 03:44:16 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\)) Subject: Re: Accessing Postgres Server and database from other Machine From: Alban Hertroys In-Reply-To: <9BA257B9-D281-4CD0-B8EB-62ABFFD9924B@gmail.com> Date: Sat, 5 Dec 2020 12:44:15 +0100 Cc: Hemil Ruparel , "Muthukumar.GK" , =?utf-8?Q?Nicklas_Av=C3=A9n?= , "pgsql-generallists.postgresql.org" , Adrian Klaver , "pgsql-general@postgresql.org >> PG-General Mailing List" Content-Transfer-Encoding: quoted-printable Message-Id: <808DF8CC-EE50-4CB4-BFA1-69E62D7A8F08@gmail.com> References: <717fd284-6bf5-c5d5-3fed-bb3677108b7a@aklaver.com> <450B1DA0-91E3-43E9-873A-82E89A655AC5@jordogskog.no> <9BA257B9-D281-4CD0-B8EB-62ABFFD9924B@gmail.com> To: =?utf-8?Q?Paul_F=C3=B6rster?= X-Mailer: Apple Mail (2.3445.104.17) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On 5 Dec 2020, at 10:05, Paul F=C3=B6rster = wrote: >=20 > Hi Hemil, >=20 >> On 05. Dec, 2020, at 07:50, Hemil Ruparel = wrote: >>=20 >> Did you restart postgres after changing pg_hba.conf? >=20 > that shouldn't be necessary for changes in pg_hba.conf. Just do either = on the command line: >=20 > $ pg_ctl reload While you=E2=80=99re in there, also verify that something is listening = on the port (see below) $ netstat -an > or from psql: >=20 > postgres=3D# select pg_reload_conf(); >=20 > You can then see the effective result immediately in = pg_hab_file_rules: >=20 > postgres=3D# table pg_hba_file_rules; Also: postgres=3D# show listen_addresses; postgres=3D# show port; Those will tell you whether the server is listening on the network and = on the expected port. Alban Hertroys -- There is always an exception to always.