0

How to connect to PostgreSQL server running in WSL from pgAdmin running in Windows? If you specify localhost and port 5432, the error appears:

could not connect to server: Connection refused (0x0000274D / 10061)
Is the server running on host "localhost" (:: 1) and accepting
TCP / IP connections on port 5432?
could not connect to server: Connection refused (0x0000274D / 10061)
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP / IP connections on port 5432?
NotTheDr01ds
  • 8,135
  • 1
  • 22
  • 45
  • WSL1 or WSL2? If WSL2, try `python3 -m http.server 8087` and then browse to `localhost:8087` in Windows. Does that work? If not, you are likely running into [this problem](https://stackoverflow.com/a/66266211/11810933). – NotTheDr01ds Aug 29 '21 at 16:08

0 Answers0