# Problem with Webrick/HTTProxy

**URL:** <https://www.ruby-forum.com/t/problem-with-webrick-httproxy/132119>\
**Category:** Ruby\
**Created:** [March 17, 2008, 6:53am UTC](https://www.ruby-forum.com/t/problem-with-webrick-httproxy/132119 "2008-03-17T06:53:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![eunhyeon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/4491bb/32.png) [@eunhyeon](https://www.ruby-forum.com/u/eunhyeon)\
**Post date:** [March 17, 2008, 6:53am UTC](https://www.ruby-forum.com/t/problem-with-webrick-httproxy/132119/1 "2008-03-17T06:53:54Z")

</div>

I installed ruby 1.8.6 for Windows(Vista Home Premium).  
And wrote some code like below.

* * *

require ‘webrick’  
require ‘webrick/httpproxy’

## s = WEBrick::HTTPProxyServer.new( :BindAddress =\> ‘0.0.0.0’, :Port =\> 8080, :Logger =\> WEBrick::Log::new($stderr, WEBrick::Log::DEBUG), ) s.start

In local computer, there is no problem.  
But in remote compute including same domain, it took too much  
seconds(about 6 to 10) to read one page or file.

I installed 1.9.0, but It still took.

At the end, I installed VMWare with Windows XP.  
And I installed Ruby 1.8.6 in Windows XP in VMWare.  
After making port forwarding, I accessed guest os proxy server from host  
os.  
It still took too many seconds.

I couldnot find “what is wrong”. Could you give me some solutions?

---

<div class="post-metadata">

**Author:** ![eunhyeon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/4491bb/32.png) [@eunhyeon](https://www.ruby-forum.com/u/eunhyeon)\
**Post date:** [March 17, 2008, 7:03am UTC](https://www.ruby-forum.com/t/problem-with-webrick-httproxy/132119/2 "2008-03-17T07:03:21Z")

</div>

P.S. There is no problem with other proxys like delegate, cc proxy.

---

<div class="post-metadata">

**Author:** ![eunhyeon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/4491bb/32.png) [@eunhyeon](https://www.ruby-forum.com/u/eunhyeon)\
**Post date:** [March 17, 2008, 10:34am UTC](https://www.ruby-forum.com/t/problem-with-webrick-httproxy/132119/3 "2008-03-17T10:34:24Z")

</div>

That works fine on my vista with ruby 1.8.6p111 bundled in instantrails  
2.0.  
I’m guessing something firewall blocks 8080 for remote access.  
Do the delegate or cc proxy works with same settings (port 8080)  
on your vista machine?

Gotoken

---

<div class="post-metadata">

**Author:** ![eunhyeon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/4491bb/32.png) [@eunhyeon](https://www.ruby-forum.com/u/eunhyeon)\
**Post date:** [March 17, 2008, 2:12pm UTC](https://www.ruby-forum.com/t/problem-with-webrick-httproxy/132119/4 "2008-03-17T14:12:50Z")

</div>

I turned off all firewall.  
And delegate and cc proxy worked well same settings (port 8080).

---

<div class="post-metadata">

**Author:** ![eunhyeon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/4491bb/32.png) [@eunhyeon](https://www.ruby-forum.com/u/eunhyeon)\
**Post date:** [March 17, 2008, 11:06pm UTC](https://www.ruby-forum.com/t/problem-with-webrick-httproxy/132119/5 "2008-03-17T23:06:29Z")

</div>

Yangsu Kim wrote:

> In local computer, there is no problem.  
> But in remote compute including same domain, it took too much  
> seconds(about 6 to 10) to read one page or file.

Shot in the dark: have you tried this?

Socket.do\_not\_reverse\_lookup = true
