From: "Tim A." Date: 2011-09-20T08:14:35+09:00 Subject: Net::Telnet doesnt work but command line telnet does I am making a simple remote control to vlc and running into troubles on ubuntu. This all works in windows however but not in ubuntu. I have no idea what could be different. When I use net/telnet I get a connection refused but if I use telnet everything works fine. with ruby: irb(main):004:0> telet = Net::Telnet.new("Host" => "localhost", "Port" => 4444, "Prompt" => //) Errno::ECONNREFUSED: Connection refused - connect(2) from /usr/lib/ruby/1.8/net/telnet.rb:352:in `initialize' from /usr/lib/ruby/1.8/net/telnet.rb:352:in `open' from /usr/lib/ruby/1.8/net/telnet.rb:352:in `initialize' from /usr/lib/ruby/1.8/timeout.rb:67:in `timeout' from /usr/lib/ruby/1.8/timeout.rb:101:in `timeout' from /usr/lib/ruby/1.8/net/telnet.rb:351:in `initialize' from (irb):4:in `new' from (irb):4 from :0 with commandline: telnet localhost 4444 Trying ::1... Connected to localhost. Escape character is '^]'. VLC media player 1.1.9 The Luggage Remote control interface initialized. Type `help' for help. > to test as well, I run vlc with this vlc --extraintf rc --rc-host=localhost:4444 If anyne can help I would appreciate it greatly -- Posted via http://www.ruby-forum.com/.