I am able to resolve this issue by turning down protected mode of redis using below commands.
redis-cli CONFIG SET protected-mode no