Dear friends,thank you for your help! I edited the pg_hba.conf file to solve the problem. The matter was TCP/IP connection.
RegardsRiccardo