Errno::EBADF: Bad file descriptor error

Im trying to use memcache-client, but there is a line in their where it
calls:, port). It fails at this point. I’ve tried just
trying to establish a connection in my script/console with“localhost”, 11211)“”, 11211)"", 11211)"", 11211)

And I also tried with different ports. I had my Norton AV firewall
turned off as well and even tried this on my friends computer in the
script/console environment.

We have not been able to get a connection established in any attempts.

Does anyone know what might be wrong?