Skip to content

Add Instructions on opening port 5432 on ubuntu #9

@cmatKhan

Description

@cmatKhan

get into sudo vim /etc/postgresql/12/main/postgresql.conf

Uncomment, and change the value to '*', this will allow Postgres connections from anyone.

listen_addresses = '*'

Save and exit the file. Next, modify pg_hba.conf to also allow connections from everyone. Open the file with your preferred editor:

sudo vim /etc/postgresql/12/main/pg_hba.conf  

Modify this section:

# IPv4 local connections:
host    all             all             127.0.0.1/32            md5

To this:

# IPv4 local connections:
host    all             all             0.0.0.0/0            md5

https://www.digitalocean.com/community/questions/remote-access-to-postgresql-with-pgadmin

open the firewall

sudo ufw allow 5432/tcp

https://stackoverflow.com/a/51597485/9708266

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions