pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Remote Access Help
3+ messages / 3 participants
[nested] [flat]

* Remote Access Help
@ 2020-11-06 00:13 DaStormer <daonlystormer@gmail.com>
  2020-11-06 08:49 ` Re: Remote Access Help Holger Jakobs <holger@jakobs.com>
  2020-11-06 08:53 ` Re: Remote Access Help Tim Cross <theophilusx@gmail.com>
  0 siblings, 2 replies; 3+ messages in thread

From: DaStormer @ 2020-11-06 00:13 UTC (permalink / raw)
  To: pgsql-admin

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.

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Remote Access Help
  2020-11-06 00:13 Remote Access Help DaStormer <daonlystormer@gmail.com>
@ 2020-11-06 08:49 ` Holger Jakobs <holger@jakobs.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Holger Jakobs @ 2020-11-06 08:49 UTC (permalink / raw)
  To: pgsql-admin@lists.postgresql.org

Hello,

Actually, this is the list of PostgreSQL, and NOT the list of PgAdmin4.

But it could be a problem with the server. To check this, try to connect 
with psql, the command line client provided by PostgreSQL.

psql -h localhost -U postgres

Have you configured PostgreSQL correctly? Are TCP/IP connections 
allowed? Is pg_hba.conf configured correctly?

Unless you can connect with psql using the parameter -h localhost, 
pgAdmin4 won't be able to connect. If you can connect with psql without 
-h localhost, then only Unix socket connections are allowd, but pgAdmin4 
isn't capable of connecting via Unix sockets.

Regards,

Holger

Am 06.11.20 um 01:13 schrieb DaStormer:
> 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.

-- 
Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012

Attachments:

  OpenPGP_0x8A579C93B31961BA.asc (application/pgp-keys, 16.5K) download

  OpenPGP_signature (application/pgp-signature, 202B) download

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Remote Access Help
  2020-11-06 00:13 Remote Access Help DaStormer <daonlystormer@gmail.com>
@ 2020-11-06 08:53 ` Tim Cross <theophilusx@gmail.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Tim Cross @ 2020-11-06 08:53 UTC (permalink / raw)
  To: pgsql-admin@lists.postgresql.org


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





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2020-11-06 08:53 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-11-06 00:13 Remote Access Help DaStormer <daonlystormer@gmail.com>
2020-11-06 08:49 ` Holger Jakobs <holger@jakobs.com>
2020-11-06 08:53 ` Tim Cross <theophilusx@gmail.com>

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