"R. Mark Volkmann" <volkmann2 / home.com> writes: > What is wrong with this two-line program? > > require 'socket' > socket = TCPSocket.new('services.xmethods.net', 80) > SocketTest.rb:2:in `new': Invalid argument - "connect(2)" (Errno::EINVAL) > from SocketTest.rb:2 EWINDOWS - you are trying to use Ruby on Windows. I have experienced and reported this bug, but it has not been addressed, AFAIK. It only happens to a few of us, and it's hard to tell why. I am not wizardly enough to hack the Ruby source (I tried :( ), so I must wait until a Windows TCP guru decides that Ruby is necessary, and fixes it for me. :) -- Jonathan Feinberg jdf / pobox.com Sunny Brooklyn, NY http://pobox.com/~jdf