'pgadmin asking different port every time when opened

I'm facing this issue. every time when I open pgadmin, it is asking for different port, the error message it is showing is that, previous port is still in use or not free.

I tried stopping the postgresql service, still showing the same error.

only thing I can to open is entering different port.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source