[postgresql] pgadmin4 : postgresql application server could not be contacted.

We got the same issue. so no any change in the file. but start pgAdmin 4 using administrator.

The following step. 1. right click pgAdmin 4 icon 2. select "Run As Administrator"