# WEBrick Issue with IE: Page Not Found, Cannot Connect to Ser

**URL:** <https://www.ruby-forum.com/t/webrick-issue-with-ie-page-not-found-cannot-connect-to-ser/95080>\
**Category:** Ruby\
**Created:** [January 12, 2006, 4:16am UTC](https://www.ruby-forum.com/t/webrick-issue-with-ie-page-not-found-cannot-connect-to-ser/95080 "2006-01-12T04:16:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [January 12, 2006, 4:16am UTC](https://www.ruby-forum.com/t/webrick-issue-with-ie-page-not-found-cannot-connect-to-ser/95080/1 "2006-01-12T04:16:40Z")

</div>

I’m working on a Ruby on Rails project. I had a catastrophic notebook  
failure earlier this week so I moved everything over to a new machine.  
I installed a new version of Ruby, Rails, WATIR, Eclipse, and  
everything else I need and I am experiencing a problem that none of our  
other 3 development machines had.  
When I fire up WEBrick from either a command prompt or my external tool  
menu in Eclipse, it seems to load up fine and I can hit my Rails app in  
Firefox from my machine and from other computers.  
I can’t use Internet Explorer to connect to WEBrick! localhost:3000,  
127.0.0.1:3000, nothing works. Firefox responds beautifully to both  
addresses on port 3000.  
Now I did notice a behavior I don’t fully understand: When I navigate  
to localhost:3000 it replaces the value in the address bar with  
local:3000.  
I’m all kinds of confused about this problem. It manifests in a number  
of ways, and I am open to the possibility that this may be several  
problems coming up all together.  
If I use Firefox I can browse to WEBrick running on other computers in  
addition to my local instance. If I use IE on this machine, I can’t hit  
my own WEBrick, and I can’t hit the WEBrick of the other developer’s  
machine. I can’t use IE on another machine and hit my local instance of  
WEBrick here, but I can use Firefox on another machine and connect to  
it.  
What can I do to make IE play nicely with WEBrick?  
Thanks!  
Jonathan

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [January 12, 2006, 4:49am UTC](https://www.ruby-forum.com/t/webrick-issue-with-ie-page-not-found-cannot-connect-to-ser/95080/2 "2006-01-12T04:49:49Z")

</div>

removed\_email\_address@domain.invalid wrote:

> Now I did notice a behavior I don’t fully understand: When I navigate  
> to localhost:3000 it replaces the value in the address bar with  
> local:3000.

Try clearing the IE cache. See about turning off auto-completion of  
URLs, too.

Also try an explicit protocol prefix:

[http://127.0.0.1:3000](http://127.0.0.1:3000)

And consider adding an entry to your hosts file

127.0.0.1 [www.example.com](http://www.example.com)

and trying it with that bogus domain:

[http://www.example.com:3000](http://www.example.com:3000)

If you have something like wget, fetch the page and inspect the headers  
to see if anything looks odd.

James

–

[http://www.ruby-doc.org](http://www.ruby-doc.org) - Ruby Help & Documentation  
[Ruby Code & Style](http://www.artima.com/rubycs/) - The Journal By & For Rubyists  
[http://www.rubystuff.com](http://www.rubystuff.com) - The Ruby Store for Ruby Stuff  
[http://www.jamesbritt.com](http://www.jamesbritt.com) - Playing with Better Toys  
[http://www.30secondrule.com](http://www.30secondrule.com) - Building Better Tools

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [January 12, 2006, 4:49am UTC](https://www.ruby-forum.com/t/webrick-issue-with-ie-page-not-found-cannot-connect-to-ser/95080/3 "2006-01-12T04:49:49Z")

</div>

you will get a better answer at the rails list.  
but the behaviour you observe is strange…IE replaces localhost to  
local? never heard of this!

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [January 12, 2006, 7:23am UTC](https://www.ruby-forum.com/t/webrick-issue-with-ie-page-not-found-cannot-connect-to-ser/95080/4 "2006-01-12T07:23:22Z")

</div>

The explicit protocol seems to have done it! I can connect with  
[http://127.0.0.1:3000](http://127.0.0.1:3000).  
Thanks a lot, James. Work may resume as normal.
