EAI_AGAIN when trying to connect to redis over private network

I think you need to specify IPv6 in the redis client. Try something like: redis.createClient({url: primary.toString(), family: "IPv6"})

Also check this thread: Multi-region deployment of redis and having trouble - #10 by kentcdodds