Relative Content

Tag Archive for .netpostgresqlwindows-subsystem-for-linux

Connecting to a PostgreSQL server launched on Windows from WSL fails

The overall situation is following: I am launching a dotnet application on my WSL environment and I have a PostgreSQL server launched on Windows. I don’t want to launch a separate server on WSL, as it brings its problems, requiring custom configurations not to have conflicts with the server launched on Windows. All the necessary postgreSQL-related stuff is installed on WSL. The problem occurs, when the application tries to establish a connection to the server using the same credentials that work when manually applying them to connect to the server in Windows. Here are the exact error message and logs:

Connecting to a PostgreSQL server launched on Windows from WSL fails

The overall situation is following: I am launching a dotnet application on my WSL environment and I have a PostgreSQL server launched on Windows. I don’t want to launch a separate server on WSL, as it brings its problems, requiring custom configurations not to have conflicts with the server launched on Windows. All the necessary postgreSQL-related stuff is installed on WSL. The problem occurs, when the application tries to establish a connection to the server using the same credentials that work when manually applying them to connect to the server in Windows. Here are the exact error message and logs:

Connecting to a PostgreSQL server launched on Windows from WSL fails

The overall situation is following: I am launching a dotnet application on my WSL environment and I have a PostgreSQL server launched on Windows. I don’t want to launch a separate server on WSL, as it brings its problems, requiring custom configurations not to have conflicts with the server launched on Windows. All the necessary postgreSQL-related stuff is installed on WSL. The problem occurs, when the application tries to establish a connection to the server using the same credentials that work when manually applying them to connect to the server in Windows. Here are the exact error message and logs: