[Wtr-general] OT: Ruby FTP behind a Firewall

Paul Carvalho tester.paul at gmail.com
Fri Aug 25 12:10:26 EDT 2006


Aha!  Thanks Chris.  My google searches didn't turn up that hit.

Unfortunately, it gets me one step further but I still cannot connect:
----
irb(main):001:0> require 'net/ftp'
=> true

irb(main):002:0> ftp = Net::FTP.new
=> #<Net::FTP:0x2bee920 @mon_owner=nil, @debug_mode=false,
@mon_waiting_queue=[], @passive=false, @binary=true, @mon_entering_queue=[],
@mon_count=0, @resume=false>

irb(main):003:0> ftp.passive = true
=> true

irb(main):004:0> ftp.connect('ftp.cs.uiuc.edu')
Net::FTPPermError: 530-
530-Your hostname cannot be confirmed via the nameserver.
530-
530-
530- -- ACCESS DENIED --
530-
530-
530-
530

        from c:/ruby/lib/ruby/1.8/net/ftp.rb:243:in `getresp'
        from c:/ruby/lib/ruby/1.8/net/ftp.rb:251:in `voidresp'
        from c:/ruby/lib/ruby/1.8/net/ftp.rb:176:in `connect'
        from c:/ruby/lib/ruby/1.8/monitor.rb:229:in `synchronize'
        from c:/ruby/lib/ruby/1.8/net/ftp.rb:174:in `connect'
        from (irb):4

irb(main):005:0> ftp.connect('ftp.ruby-lang.org')
=> nil
----

I'm going to go back to our IT guy and see if he can shed anymore light as
to why I'm getting this error.  Google didn't turn up anything helpful to me
when I tried searching on that specific ftp error message.


Cheers.  Paul.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060825/9b590d86/attachment.html 


More information about the Wtr-general mailing list