无法通过公共IP

时间:2018-04-22 02:02:48

标签: postgresql port router lan wan

我无法通过公共IP连接到Postgre。我已经尝试过的事情:

启用DMZ以打开端口5432(已验证它在https://www.yougetsignal.com/tools/open-ports/处打开);

在postgresql.conf中将listen_addresses更改为*;

将此行添加到pg_hba.conf

host    all             all             clientpublicip/32       trust

尝试从具有不同公共IP的其他网络访问它。

我得到的错误是在psql命令行中:

服务器无法收听 服务器不接受连接:连接库报告 无法连接到服务器:连接被拒绝(0x0000274D / 10061)服务器是否在主机上运行" xxx.xxx.xxx.xxx"并接受端口5432上的TCP / IP连接?

我在Windows上已经禁用了防火墙

我想做什么:

psql -U postgres -h mypublicip

psql -U postgres -h mydns

有什么建议吗?

0 个答案:

没有答案
相关问题