Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have local Redis instance listening on Unix socket. Is it possible to allow remote connections to this Redis instance via TCP? Any solutions? Maybe some kind of proxying TCP <> Unix socket?

share|improve this question
up vote 2 down vote accepted

There is no need for a proxy of some kind, you can enable both socket and TCP listening in redis.conf like this:

port 6379
# bind

unixsocket /tmp/redis.sock

Having the bind commented out defaults to listen on all interfaces.

share|improve this answer
thank you! Very simple :) By the way, will this trick work with memcached? – Kirzilla Apr 24 '14 at 21:21
@Kirzilla no, memcached is either socket or TCP – faker Apr 24 '14 at 21:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.