I am running windows XP with ruby 1.8.3 beta
[code]
require "socket"
port = if ARGV.size > 0 then ARGV.shift else 4444 end
port = 80
print port, "\n"
s = TCPSocket::open("localhost", port)
while gets
s.write($_)
print(s.gets)
end
s.close
[code]
gives me this error in scite
ruby 23.rb
80
23.rb:7:in `initialize': No connection could be made because the target
machine actively refused it. - connect(2) (Errno::ECONNREFUSED)
from 23.rb:7:in `open'
from 23.rb:7
Exit code: 1
Any help, i am a newbie
Becker