Unable to connect to remote redis host [nodeJS]
const redis = require('redis'); require('dotenv').config(); console.log(process.env.redisHost, ':', process.env.redisPort); const redisClient = redis.createClient({ host: process.env.redisHost, port: process.env.redisPort, password: process.env.redisKey }); redisClient.connect(); redisClient.on('error', err => console.log('Redis error: ', err.message)); redisClient.on('connect', () => console.log('Connected to redis server')); module.exports = redisClient; I tried this…