title: Error when connecting to postgres through renamed 'local host'
body: <pre><code>if __name__ == '__main__':
  connection = psycopg2.connect(
  database = 'library',
  user = 'postgres',
  password = '1234',
  host = 'grabel.ddns.net',
  port = '5432')
  
  
  (postgres-challenge-workspace) C:\Users\gabri\postgres-challenge-workspace&gt;python library.py
  </code></pre>
  <p>Traceback (most recent call last):
  File &quot;C:\Users\gabri\postgres-challenge-workspace\library.py&quot;, line 40, in 
  connection = psycopg2.connect(
  File &quot;C:\Users\gabri\postgres-challenge-workspace\lib\site-packages\psycopg2_<em>init</em>_.py&quot;, line 127, in connect
  conn = _connect(dsn, connection_factory=connection_factory, <strong>kwasync)
  psycopg2.OperationalError: could not connect to server: Connection refused (0x0000274D/10061)
  Is the server running on host &quot;grabel.ddns.net&quot; (</strong>.<em><strong>.</strong></em>.***) and accepting
  TCP/IP connections on port 5432?</p>