Vladislav Rastrusny
Vladislav Rastrusny

Reputation: 29985

Redis: how to provide localhost / any address for ipv6?

You can configure redis to listen on localhost only by providing in the redis.conf file

# Localhost
bind 127.0.0.1 
# All addresses
bind 0.0.0.0

How do the same for ipv6 addresses?

Upvotes: 2

Views: 3223

Answers (1)

Itamar Haber
Itamar Haber

Reputation: 49962

I haven't tested this with Redis, but the IPv6 localhost (loopback) equivalent is ::1 whereas the all zeros address (i.e.g. TCP's INADDR_ANY) equivalent is ::.

Upvotes: 2

Related Questions