# cannot connect to valkey/redis

**URL:** <https://community.fly.io/t/cannot-connect-to-valkey-redis/25264>\
**Category:** General\
**Tags:** redis, login-only\
**Created:** [July 1, 2025, 8:47pm UTC](https://community.fly.io/t/cannot-connect-to-valkey-redis/25264 "2025-07-01T20:47:35Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![mayailurus](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/mayailurus/32/17593_2.png) [@mayailurus](https://community.fly.io/u/mayailurus)\
**Post date:** [July 1, 2025, 9:08pm UTC](https://community.fly.io/t/cannot-connect-to-valkey-redis/25264/3 "2025-07-01T21:08:32Z")

</div>

> [@miker](#):
>
> So Upstash also has this problem?

That older post mentions IORedis, which has an IPv6 gotcha:

> [@ioredis only works with ipv6](https://community.fly.io/t/ioredis-only-works-with-ipv6/25013/1):
>
> I just solved a ioredis issue with this
> 
> ```auto
> export const redisClient = new Redis(env.REDIS_URL, {
> maxRetriesPerRequest: null,
> enableReadyCheck: false,
> family: 6
> });
> 
> ```
> 
> which seems to an old problem.

That doesn’t sound the same as your own situation, though, since yours would have been failing all along. (Unless you did just modify that section of the code.)

---

_[View the full topic](https://community.fly.io/t/cannot-connect-to-valkey-redis/25264)._
