title: Connecting VS code to PostgreSQL running on Windows Server 2019
body: <p>I am running PostgreSQL on my Windows Server 2019. I already changed the settings in <strong>postgresql.conf</strong> to <strong>listen_addresses = '*'</strong>. I also changed the <strong>pg_hba.conf</strong> to <strong>host    all     all     192.168.1/32        trust</strong>. When I try to connect using VS code running on my laptop I keep getting a Failed to connect error. 
  My question is do I put the IP address of my server in the "Server Name" section or do I put the 127.0.0.1:xxxxx</p>
  
  <p>Here is what I am talking about, not sure what to put to make it work.
  <a href="https://i.stack.imgur.com/HmKmZ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HmKmZ.jpg" alt="enter image description here"></a></p>