title: PostgreSQL connection refused. Client presents with public IP address
body: <p>I have .NET Core application which uses PostgreSQL. When I installed application on a machine which is presented to internet via IP address (Mikrotik via dst-nat), PostgreSQL server refuses connection with information that public IP address can't connect to PostgreSQL server.
  But on Mikrotik router, I see that client tries to connect via internal IP address on the server port 5432, but (somehow) presents via public address. PostgreSQL server and client are in different subnets.</p>
  <p>Thanks.</p>