How to Fix the pgAdmin 4 v3.0+ Port Number
Your specific problem might have already been resolved, but...
It is possible to configure a fixed port for pgAdmin 4:
- Click on the pgAdmin 4 tray-icon
- Click "Configure..."
- Check the box labeled "Fixed Port Number?"
- Enter the desired port number in the field next to it
Screenshots:
- pgAdmin 4 Configuration
- Tray icon (on GNOME desktop)
Ran into this problem on Windows Server 2016 with pgAdmin4 v3.5 - resolved it by setting "IE Enhanced Security Configuration" to OFF - can then immediately access the management pages (note - 'run as Administrator' was not required).
Had the same issue in the following setup: Kubuntu 18, Firefox 64.0
What worked for me:
Context menu > Copy server URL. That will give us an url of form:
http://127.0.0.1:1234/?key=18ef03ff-d16a-43bc-af30-b20c66fbf452
Navigate to that URL via browser (in my case Firefox worked well)
The following did not help:
Context menu > New pgAdmin 4 window...
Uninstall & install pgAdmin 4
Clear cookies for 127.0.0.1
Restart pgAdmin4
Hope this helps someone.