I have two Amazon-EC2 instance let's say A and B. B has redis-server installed.
I want to access B from A So I am trying
A$ redis-cli -h B_ip -p 6379
Could not connect to Redis at B_ip:6379: Connection timed out
Could not connect to Redis at B_ip:6379: Connection timed out
My workaround :
I changed /etc/redis/redis.conf
bind 127.0.0.1 ----> bind 0.0.0.0
Then I restarted redis-server but the issue is persistent
More informations :
B$ netstat -nlpt | grep 6379
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:6379 0.0.0.0:* LISTEN -
Please help.
Progress :
I searched and found to remove bind at all to get connected from external ip. But again not working.
I tried to replace bind 0.0.0.0 with private_ip_of_B but still not working.