title: talking to a remote redis server using redis-py (python wrapper over redis)
body: <p>I have installed redis on an independent database server(ec2 instance). And it has been installed and configured properly. 
  Now all that I want to do is from my webserver, I connect to it, and make changes to its key value store. </p>
  
  <p>I have a python/django application running on heroku, and I am using PostgreSQL for everything else, I am using redis just to store some temporary variable in the KV sets. </p>
  
  <p>Now, I install <a href="https://github.com/andymccurdy/redis-py" rel="noreferrer">https://github.com/andymccurdy/redis-py</a> on my localserver, and webserver. </p>
  
  <p>To test the connection and check if things are working well, I try the following in my environment :</p>
  
  <pre><code>&gt;&gt;&gt; pool = redis.ConnectionPool(host='MY_DBSERVER_IP_ADDRESS', port=6379, db=0)
  &gt;&gt;&gt; r = redis.Redis(connection_pool=pool)
  &gt;&gt;&gt; r.set('foo', 'bar')
  </code></pre>
  
  <p>this gives me an error - <code>ConnectionError: Error 111 connecting 54.235.xxx.xxx:6379. Connection refused.</code></p>
  
  <p>How do I connect? What am I missing?</p>