Failed to connect to memcache on remote server

I am trying to connect to Memcache on a remote (linux) host and firewall is disabled on this system. When I try to connect, I am getting the error: Can’t connect to, A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

If I try telnet localhost 11211 on that remote host, it is working fine.

This could be related to settings on Linux on remote server. There are so many different settings that can prevent connection to non-standart port.

First of all, do you has SELinux on any one of these server? If you don’t know the answer, you must investigate and make sure you know whether or not your Linux is running SELinux because then its a whole new can of warms.

The best thing to start is to look in /var/log/message, /var/log/secure to see what errors are logged right after you try to connect.


can of warms
? :lol:[/ot]

Got solution for this. I should start memcache daemon, with parameter l, which specifies the IP, on which memcache should work. Previously, it is Now I set it to LAN IP. :smiley: