# Newbie Questions: How to set the proxy to download files by

**URL:** <https://www.ruby-forum.com/t/newbie-questions-how-to-set-the-proxy-to-download-files-by/54786>\
**Category:** Ruby\
**Created:** [March 14, 2006, 7:30am UTC](https://www.ruby-forum.com/t/newbie-questions-how-to-set-the-proxy-to-download-files-by/54786 "2006-03-14T07:30:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eric99](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/a88e4f/32.png) [@eric99](https://www.ruby-forum.com/u/eric99)\
**Post date:** [March 14, 2006, 7:30am UTC](https://www.ruby-forum.com/t/newbie-questions-how-to-set-the-proxy-to-download-files-by/54786/1 "2006-03-14T07:30:26Z")

</div>

Hi  
I want to download a log file from the remote server, and I’m outside of  
the firewall. so I need to access the remote server by proxy. But I  
failed to figure out what’s the correct way to set the proxy.

I had the followint code snippet:

ENV[‘ftp\_proxy’] = “192.168.254.129:4480”  
Net::FTP.open(‘132.201.245.80’) do |ftp|  
ftp.login(“usename”, “password”)  
##  
end

It seems that the envinroment variable “ftp\_proxy” has no effect.

Any clue for this problem will be appreciated.

Thanks  
Eric
