Forums

Redis and open ports

Hello, I would like to use redis in my application, but it seems that the port used by default 6379 is closed. Could you please specify the open ports for the fee-paying users?

2014-01-29 13:40:19,526 :Error:Got exception during processing: Error 111 connecting localhost:6379. Connection refused., traceback:Traceback (most recent call last):

Thanks

Are you trying to run a redis server on PythonAnywhere? Unfortunately we don't support that right now.

Yep, ok thanks.

If redis is not supported, is there another way I can persist a state in my application? I want to develop a chat-similar feature with the messages streamed to the user. Thanks

You could use MySQL -- would that work?

What about now?

No, not yet.

Is there a way to be able to connect to remote redis?

For example, now when I do something like this:

redis_db = redis.Redis(
    host='redis-13872.c99.us-east-1-2.ec2.cloud.redislabs.com:13872',
    port=13872, 
    password='asgdhjasgdhjasgdgsa')

redis_db.get(my_value)

I get:

"Error 111 connecting to redis-13872.c99.us-east-1-2.ec2.cloud.redislabs.com:13872. Connection refused."

What would you recommend to do?

Not if you are a free user. (you will have to upgrade)

Thanks for the prompt reply!