Hi,
PFA patch to fix the issue where pgAdmin4 was not able to utilise the hostparameter from service file.
--Regards,Murtuza ZabuawalaEnterpriseDB: http://www.enterprisedb.comThe Enterprise PostgreSQL Company