# Connection refused

**URL:** <https://www.ruby-forum.com/t/connection-refused/153143>\
**Category:** Rails\
**Created:** [November 12, 2008, 4:49pm UTC](https://www.ruby-forum.com/t/connection-refused/153143 "2008-11-12T16:49:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![xxmithila](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/ebca7d/32.png) [@xxmithila](https://www.ruby-forum.com/u/xxmithila)\
**Post date:** [November 12, 2008, 4:49pm UTC](https://www.ruby-forum.com/t/connection-refused/153143/1 "2008-11-12T16:49:38Z")

</div>

what is the reason for this error. this return when try to direct web  
page.

No connection could be made because the target machine actively  
refused it. - connect(2)

---

<div class="post-metadata">

**Author:** ![xxmithila](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/ebca7d/32.png) [@xxmithila](https://www.ruby-forum.com/u/xxmithila)\
**Post date:** [November 13, 2008, 5:15pm UTC](https://www.ruby-forum.com/t/connection-refused/153143/2 "2008-11-13T17:15:47Z")

</div>

Hi xxmithila,

have you checked the firewall setting on the machine you are trying to  
connect to?

Jean-Marc

---

<div class="post-metadata">

**Author:** ![xxmithila](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/ebca7d/32.png) [@xxmithila](https://www.ruby-forum.com/u/xxmithila)\
**Post date:** [November 13, 2008, 5:40pm UTC](https://www.ruby-forum.com/t/connection-refused/153143/3 "2008-11-13T17:40:59Z")

</div>

Exactly what is it you are trying todo?

Is there a firewall?  
Is the server running?  
Can you see the port using netstat?  
does wget/telnet or links work from the local server?  
Windows/Linux?

apache/mongrel/webrick?

---

<div class="post-metadata">

**Author:** ![xxmithila](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/ebca7d/32.png) [@xxmithila](https://www.ruby-forum.com/u/xxmithila)\
**Post date:** [November 13, 2008, 6:00pm UTC](https://www.ruby-forum.com/t/connection-refused/153143/4 "2008-11-13T18:00:58Z")

</div>

Hi… Freddy and jean

I tried it on windows OS. anyway after restarting several time it was  
not  
return that error. I also think it is a problem with firewall.  
thankx friends
