Ubuntu Postgresql Server Allow Remote Access ———10.18.2017

As titled, trying to access the database from another machine under the same local network

How?


Now further question, enable remote access from public network

Basic understanding of different kinds of network setup:


Ubuntu Postgresql Server Allow Remote Access ———10.18.2017_第1张图片

1. Set up configuration files.

Ubuntu Postgresql Server Allow Remote Access ———10.18.2017_第2张图片

2. Set up bridged connection or do port forwarding in NAT. (updated 01.20.2018, port forwarding works for my situation, great)

**VMware favors bridge whereas Virtualbox favors NAT + port forwarding.


Ubuntu Postgresql Server Allow Remote Access ———10.18.2017_第3张图片

Aside:

Changing network configuration and adding network adapter



Port 3389 (remote desktop, remote assistance)


Ubuntu Postgresql Server Allow Remote Access ———10.18.2017_第4张图片

Port 5432 (PostgreSQL)


Ubuntu Postgresql Server Allow Remote Access ———10.18.2017_第5张图片

你可能感兴趣的:(Ubuntu Postgresql Server Allow Remote Access ———10.18.2017)