Dear friends, thank you for your help! I edited the pg_hba.conf file to solve the problem. The matter was TCP/IP connection. Regards Riccardo
pgsql-jdbc by date:
Соглашаюсь с условиями обработки персональных данных