Reputation: 29985
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
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