简体   繁体   English

无法通过 Google Cloud 上端口 8085 上的 pgadmin 远程连接到 postgresql

[英]Unable to connect to postgresql remotely through pgadmin on port 8085 on Google Cloud

I've postgres server listening on all ip addresses at port 8085. Even after following the Google cloud instructions here to open the port 8085 (instead of default 5432 port) through firewall rules, I'm still getting the following error.我已经在端口 8085 上侦听所有 ip 地址的 postgres 服务器。即使按照此处的 Google 云说明通过防火墙规则打开端口 8085(而不是默认的 5432 端口),我仍然收到以下错误。 I've set up both egress and ingress firewall rules with the same ip address as the source (for ingress) and destination (for egress rules).我已经使用相同的 ip 地址作为源(用于入口)和目标(用于出口规则)设置了出口和入口防火墙规则。

Error: could not connect to server: Connection timed out (0x0000274C/10060) Is the server running on host "xx.xx.xxx.xx" and accepting TCP/IP connections on port 8085?错误:无法连接到服务器:连接超时 (0x0000274C/10060) 服务器是否在主机“xx.xx.xxx.xx”上运行并接受端口 8085 上的 TCP/IP 连接?

For ingress rule, set the following values for source and destination:对于入口规则,为源和目标设置以下值:

Source is the client that is originating the request, so the source ip is 'any' and the source port is 'any'.源是发起请求的客户端,因此源 ip 是“任意”,源端口是“任意”。 However, the destination is the server that is serving the client request.但是,目标是为客户端请求提供服务的服务器。 So the destination ip is whatever is the public ip of your VM and destination port is 8085.因此,目标 ip 是 VM 的公共 ip,目标端口是 8085。

For egress rule, the source and destination values are analogous to the ingress rule.对于出口规则,源和目标值类似于入口规则。 Source ip is the server ip address and the source port is 8085. Destination ip is 'any' and destination port is also 'any'.源 ip 是服务器 ip 地址,源端口是 8085。目标 ip 是“任意”,目标端口也是“任意”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用pgadmin远程访问postgresql - Access postgresql remotely with pgadmin 无法使用PgAdmin在Amazon EC2实例上远程连接到PostgreSQL - Cannot connect to PostgreSQL Remotely on Amazon EC2 instance using PgAdmin 无法使用 pgAdmin 将 PostgreSQL 连接到远程数据库 - Unable to connect PostgreSQL to remote database using pgAdmin 无法从Windows上的pgadmin连接到greenplum postgresql - Unable to connect to greenplum postgresql from pgadmin on windows 无法通过pgadmin 3连接Postgresql数据库 - Cannot connect postgresql database through pgadmin 3 无法通过Pgadmin 4连接到远程服务器上的PostgreSQL - Unable to connect to PostgreSQL on remote server via Pgadmin 4 pgadmin4 连接到 Google Cloud SQL 中的 postgres - pgadmin4 connect to postgres in Google Cloud SQL 打开端口,以便Windows 7上的pgAdmin可以连接到VirtualBox上Debian上的PostgreSQL - Opening port so that pgAdmin on Windows 7 can connect to PostgreSQL on Debian on VirtualBox 无法从 pgAdmin4 连接到 Amazon RDS 上的 PostgreSQL 数据库:内部服务器错误:端口 5432 失败:超时已过期 - Unable to connect to PostgreSQL databese on Amazon RDS from pgAdmin4: internal server error: port 5432 failed: timeout expired 无法从 pgadmin4 连接到 postgresql ec2 实例 - Unable to connect to an postgresql ec2 instance from pgadmin4
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM