# Memcache client not connection

**URL:** <https://www.ruby-forum.com/t/memcache-client-not-connection/115417>\
**Category:** Rails\
**Created:** [September 25, 2007, 2:49am UTC](https://www.ruby-forum.com/t/memcache-client-not-connection/115417 "2007-09-25T02:49:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericgoodwin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/c68b51/32.png) [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Post date:** [September 25, 2007, 2:49am UTC](https://www.ruby-forum.com/t/memcache-client-not-connection/115417/1 "2007-09-25T02:49:37Z")

</div>

Im trying to get the memcache-client working.

Im not a development, windows environment and I tried doing:

CACHE = MemCache.new ‘localhost:11211’, :namespace =\> ‘my\_namespace’

but the mem-cache server isnt connecting.Then, when I do  
ARCLass.get\_cache, it says “MemCache::MemCacheError: No connection to  
server”

Any ideas why I cant establish the memcache connection?

---

<div class="post-metadata">

**Author:** ![ericgoodwin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/c68b51/32.png) [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Post date:** [September 25, 2007, 3:16am UTC](https://www.ruby-forum.com/t/memcache-client-not-connection/115417/2 "2007-09-25T03:16:37Z")

</div>

It turns out that Im actually getting the infamous

“Bad file descriptor - connect(2)”

whenever I try to do TCPSocket.new(port, host)

I tried “localhost”,“127.0.0.1”, and “” for the host  
along with various port numbers, I seem to always get this error.

I turned off the protection settings on my Norton AntiVirus and that  
didn’t help.

Do you think I should try turning off the Norton AV completely?

What else might be wrong?
