Skip to content

Instantly share code, notes, and snippets.

@kenn
Created May 17, 2011 23:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenn/977702 to your computer and use it in GitHub Desktop.
Save kenn/977702 to your computer and use it in GitHub Desktop.
> require 'socket'
> s=TCPSocket.new('localhost',27017)
=> #<TCPSocket:fd 3>
> require 'net/ping'
> s=TCPSocket.new('localhost',27017)
Errno::ECONNREFUSED: Connection refused - connect(2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment