I am trying to connect to Memcache on a remote (linux) host 192.168.0.99 and firewall is disabled on this system. When I try to connect, I am getting the error: Can’t connect to 192.168.0.99:11211, 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.
Got solution for this. I should start memcache daemon, with parameter l, which specifies the IP, on which memcache should work. Previously, it is 127.0.0.1. Now I set it to LAN IP.