# First App. Firefox Yes, Safari No

**URL:** <https://www.ruby-forum.com/t/first-app-firefox-yes-safari-no/73164>\
**Category:** Rails\
**Created:** [October 22, 2006, 12:53pm UTC](https://www.ruby-forum.com/t/first-app-firefox-yes-safari-no/73164 "2006-10-22T12:53:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![colin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e19b73/32.png) [@colin](https://www.ruby-forum.com/u/colin)\
**Post date:** [October 22, 2006, 12:53pm UTC](https://www.ruby-forum.com/t/first-app-firefox-yes-safari-no/73164/1 "2006-10-22T12:53:45Z")

</div>

Hello everyone. Great forum.

I’ve just started going through the first edition of Agile Web  
Development with Rails on my Mac running a near stock install of 10.4.8.  
The very first example in the book (page 28) involves running an  
unmodified generated application (just “rails foo” on the command line,  
and then “scripts/server” to start WEBrick). The application builds  
fine, and it works perfectly in Firefox, but it doesn’t work in Safari.  
In Safari, I get the following:

500 Server Error

[code=CANT\_CONNECT\_LOOPBACK] Cannot connect due to potential loopback  
problems.

This seems very strange to me. Any ideas?

Thanks,

Colin

---

<div class="post-metadata">

**Author:** ![colin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e19b73/32.png) [@colin](https://www.ruby-forum.com/u/colin)\
**Post date:** [October 22, 2006, 10:21pm UTC](https://www.ruby-forum.com/t/first-app-firefox-yes-safari-no/73164/2 "2006-10-22T22:21:10Z")

</div>

Colin Caufield wrote:

> problems.
> 
> This seems very strange to me. Any ideas?

What URL are you using in Safari? ‘localhost’, ‘127.0.0.1’, ‘0.0.0.0’,  
your network IP…?

Chris

---

<div class="post-metadata">

**Author:** ![colin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e19b73/32.png) [@colin](https://www.ruby-forum.com/u/colin)\
**Post date:** [October 22, 2006, 10:49pm UTC](https://www.ruby-forum.com/t/first-app-firefox-yes-safari-no/73164/3 "2006-10-22T22:49:55Z")

</div>

Chris M. wrote:

> What URL are you using in Safari? ‘localhost’, ‘127.0.0.1’, ‘0.0.0.0’,  
> your network IP…?

On Firefox, the following all work:

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

On Safari, these all result in the aforementioned 500 error.

So it seems like my ruby application and my WEBrick server are all  
working perfectly. Something that Safari does differently than Firefox  
is causing the error. Proxy settings, host files, etc? I haven’t  
knowingly made any changes to these. This is using ruby 1.8.2 that  
comes with Mac OS 10.4 and the latest Ruby Gems package. I’ve also  
installed the readline upgrade but that didn’t fix the problem.

---

<div class="post-metadata">

**Author:** ![colin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e19b73/32.png) [@colin](https://www.ruby-forum.com/u/colin)\
**Post date:** [October 22, 2006, 11:29pm UTC](https://www.ruby-forum.com/t/first-app-firefox-yes-safari-no/73164/4 "2006-10-22T23:29:27Z")

</div>

Colin Caufield wrote:

> On Safari, these all result in the aforementioned 500 error.
> 
> So it seems like my ruby application and my WEBrick server are all  
> working perfectly. Something that Safari does differently than Firefox  
> is causing the error. Proxy settings, host files, etc? I haven’t  
> knowingly made any changes to these. This is using ruby 1.8.2 that  
> comes with Mac OS 10.4 and the latest Ruby Gems package. I’ve also  
> installed the readline upgrade but that didn’t fix the problem.

Yeah, this is definitely a networking problem, nothing to do with  
Rails/Ruby. Try disconnecting from the internet and/or your local  
wired/wireless network, and see if it works then.

Chris

---

<div class="post-metadata">

**Author:** ![colin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e19b73/32.png) [@colin](https://www.ruby-forum.com/u/colin)\
**Post date:** [October 23, 2006, 12:43am UTC](https://www.ruby-forum.com/t/first-app-firefox-yes-safari-no/73164/5 "2006-10-23T00:43:38Z")

</div>

Colin Caufield wrote:

> Unfortunatley, when I re-enable the ethernet connection, the old 500  
> problem comes back. Does anyone know why this would happen and what a  
> more workable solution would be?
> 
> My only thought is that I’ve inadvertently made a change to some  
> networking configuration file somewhere. Is there a good way to reset  
> my network to its original state without resorting to an OS reinstall?

Is Automatic Proxy Configuration turned on (in Network preferences, for  
your Ethernet connection, under Proxies, in the list of ‘proxy servers  
to configure’)? If so, try turning it off.

Chris

---

<div class="post-metadata">

**Author:** ![colin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e19b73/32.png) [@colin](https://www.ruby-forum.com/u/colin)\
**Post date:** [October 23, 2006, 2:39am UTC](https://www.ruby-forum.com/t/first-app-firefox-yes-safari-no/73164/6 "2006-10-23T02:39:24Z")

</div>

Chris M. wrote:

> Is Automatic Proxy Configuration turned on (in Network preferences, for  
> your Ethernet connection, under Proxies, in the list of ‘proxy servers  
> to configure’)? If so, try turning it off.

That was it. Thanks so much, Chris.

---

<div class="post-metadata">

**Author:** ![colin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e19b73/32.png) [@colin](https://www.ruby-forum.com/u/colin)\
**Post date:** [October 23, 2006, 12:22am UTC](https://www.ruby-forum.com/t/first-app-firefox-yes-safari-no/73164/7 "2006-10-23T00:22:54Z")

</div>

Chris M. wrote:

> Yeah, this is definitely a networking problem, nothing to do with  
> Rails/Ruby. Try disconnecting from the internet and/or your local  
> wired/wireless network, and see if it works then.

My internet setup is just a cable modem with an ethernet connection to  
my machine. When I disable the ethernet connection, the ruby  
application begins to work perfectly in Safari. Thanks very much Chris!

Unfortunatley, when I re-enable the ethernet connection, the old 500  
problem comes back. Does anyone know why this would happen and what a  
more workable solution would be?

My only thought is that I’ve inadvertently made a change to some  
networking configuration file somewhere. Is there a good way to reset  
my network to its original state without resorting to an OS reinstall?
