title: PgAdmin- Postgres: could not connect to server: Connection refused (0x0000274D/10061)
body: <p>Hi i want to use <strong>PostgreSQL</strong> for a school project and whenever i open the server in <strong>Pg Admin</strong> i got the same issue</p>
  <p>when i first open Pg Admin i enter the password that i entered in the installation and when i click to server(1) it requires password for user &quot;postgres&quot; i use the same password but it tells me:</p>
  <pre><code>could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host &quot;localhost&quot; (::1) and accepting TCP/IP connections on port 1500? could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host &quot;localhost&quot; (127.0.0.1) and accepting TCP/IP connections on port 1500?
  </code></pre>
  <p>i don't know what does it really mean .. cause i'm new to databases and servers</p>
  <ul>
  <li>i reinstall all postgres &amp; Pg admin : same issue</li>
  <li>i restart the server in services-postgres.. : same issue</li>
  </ul>
  <p>I'm using PostgreSQL-12 and Pg Admin-4 in Windows-10</p>
  <p><a href="https://i.stack.imgur.com/Msf4y.jpg" rel="nofollow noreferrer">image</a></p>
  <p>please help !!
  and thank you !</p>