secure your SQL server
PostgreSQL uses the pg_hba.conf file to control who has access to the
server. Assuming you are on a private network (192.168.100.0), your
database is called 'mycompany' and you connect with user 'dbuser', then
add
host mycompany 192.168.100.0 255.255.255.0 dbuser ident