# Problem with Webrick/HTTProxy

**URL:** <https://rubytalk.org/t/problem-with-webrick-httproxy/45233>\
**Category:** ruby-talk\
**Created:** [17 March 2008 05:53 UTC](https://rubytalk.org/t/problem-with-webrick-httproxy/45233 "2008-03-17T05:53:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yangsu\_Kim](https://avatars.discourse-cdn.com/v4/letter/y/7c8e57/32.png) [@Yangsu\_Kim](https://rubytalk.org/u/Yangsu_Kim)\
**Post date:** [17 March 2008 05:53 UTC](https://rubytalk.org/t/problem-with-webrick-httproxy/45233/1 "2008-03-17T05:53:46Z")

</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(  
> &nbsp;&nbsp;:BindAddress =\> '0.0.0.0',  
> &nbsp;&nbsp;:Port =\> 8080,  
> &nbsp;&nbsp;: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?  
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Yangsu\_Kim](https://avatars.discourse-cdn.com/v4/letter/y/7c8e57/32.png) [@Yangsu\_Kim](https://rubytalk.org/u/Yangsu_Kim)\
**Post date:** [17 March 2008 06:03 UTC](https://rubytalk.org/t/problem-with-webrick-httproxy/45233/2 "2008-03-17T06:03:11Z")

</div>

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

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Joel\_VanderWerf1](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@Joel\_VanderWerf1](https://rubytalk.org/u/Joel_VanderWerf1)\
**Post date:** [17 March 2008 21:51 UTC](https://rubytalk.org/t/problem-with-webrick-httproxy/45233/3 "2008-03-17T21:51:26Z")

</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

> **···**
>
> --  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

---

<div class="post-metadata">

**Author:** ![GOTO\_Kentaro](https://avatars.discourse-cdn.com/v4/letter/g/ebca7d/32.png) [@GOTO\_Kentaro](https://rubytalk.org/u/GOTO_Kentaro)\
**Post date:** [17 March 2008 09:33 UTC](https://rubytalk.org/t/problem-with-webrick-httproxy/45233/4 "2008-03-17T09:33:06Z")

</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

> **···**
>
> On Mon, Mar 17, 2008 at 3:03 PM, Yangsu Kim \<nrimbo@gmail.com\> wrote:
> 
> > P.S. There is no problem with other proxys like delegate, cc proxy.
> > 
> > --  
> > Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![Yangsu\_Kim](https://avatars.discourse-cdn.com/v4/letter/y/7c8e57/32.png) [@Yangsu\_Kim](https://rubytalk.org/u/Yangsu_Kim)\
**Post date:** [17 March 2008 13:12 UTC](https://rubytalk.org/t/problem-with-webrick-httproxy/45233/5 "2008-03-17T13:12:43Z")

</div>

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

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
