From: Tim Cross <theophilusx@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Remote Access Help
Date: Fri, 06 Nov 2020 19:53:10 +1100
Message-ID: <87eel6amtl.fsf@gmail.com> (raw)
In-Reply-To: <CAM0_Y-WmcrSJvB+Cbyrwe3wuxMt34uORmUO_CDJOMzkEs4LZpw@mail.gmail.com>
References: <CAM0_Y-WmcrSJvB+Cbyrwe3wuxMt34uORmUO_CDJOMzkEs4LZpw@mail.gmail.com>
DaStormer <daonlystormer@gmail.com> writes:
> Hey,
>
> I'm attempting to connect to my PostgreSQL server which is on my Linux ubuntu machine with pgAdmin4 remotely from my Windows PC. I'm pretty sure I
> have correctly configured everything necessary, but it still gives me this error:
>
> Unable to connect to server:
>
> could not connect to server: Connection timed out (0x0000274C/10060)
> Is the server running on host "-----------------------" (-------------) and accepting
> TCP/IP connections on port 5432?
>
> Please advise.
Check the setting of the firewall on the Linux system. By default,
Ubuntu uses gufw to configure a basic firewall. You need to ensure that
it has a rule allowing remote connections to the pg port (typically
5432).
If you have the psql utility installed on your Windows box, you can test
to see if that connects. As psql is 'simpler' than pgAdmin4, it is a
good way to verify you can connect to the database, eliminating issues
like password, db name and network issues. I tend to find tools like
pgAdmin4, in an attempt to be 'user friendly' often try to be too clever
or hide critical information which makes tracking down common issues
easy.
--
Tim Cross
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: theophilusx@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: Remote Access Help
In-Reply-To: <87eel6amtl.fsf@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox