As I went through the pickaxe, I created a file called socket.rb. Well, when I wrote a new program, include socket did what you would expect and didn't work. Also, make sure you can do a telnet services.xmethods.com 80 rick R. Mark Volkmann(volkmann2 / home.com)@2001.04.27 09:58:27 +0000: > This should be an easy one for anyone that has successfully used sockets in > Ruby. > What is wrong with this two-line program? > > require 'socket' > socket = TCPSocket.new('services.xmethods.net', 80) > > I get the following when I run it. > > SocketTest.rb:2:in `new': Invalid argument - "connect(2)" (Errno::EINVAL) > from SocketTest.rb:2 > > __ __ > / \/ \ Object Computing, Inc. > \ / ark (314)589-1617 pager > (314)579-0066 OCI > \ / olkmann mark / ociweb.com > \/ > >