# Limit Ring server to localhost only. RingFinger.new('localhost') apparently doesn't work

**URL:** <https://www.ruby-forum.com/t/limit-ring-server-to-localhost-only-ringfinger-new-localhost-apparently-doesnt-work/191026>\
**Category:** Rails\
**Created:** [July 2, 2010, 10:06pm UTC](https://www.ruby-forum.com/t/limit-ring-server-to-localhost-only-ringfinger-new-localhost-apparently-doesnt-work/191026 "2010-07-02T22:06:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrick\_nicholas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a698b9/32.png) [@patrick\_nicholas](https://www.ruby-forum.com/u/patrick_nicholas)\
**Post date:** [July 2, 2010, 10:06pm UTC](https://www.ruby-forum.com/t/limit-ring-server-to-localhost-only-ringfinger-new-localhost-apparently-doesnt-work/191026/1 "2010-07-02T22:06:06Z")

</div>

Am using RingyDingy.  
Have altered call to Rinda::RingFinger.new to  
Rinda::RingFinger.new(‘localhost’) in ring\_server.rb and in  
ringy\_dingy.rb, but still get, intermittently, attachments to like  
named services on my compatriots (in the same lan segment) which  
causes things to disappear trying to run on their machine (or on mine  
from theirs). Need to stop this behavior for development so we can  
work independantly.  
Any suggestions?

---

<div class="post-metadata">

**Author:** ![patrick\_nicholas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a698b9/32.png) [@patrick\_nicholas](https://www.ruby-forum.com/u/patrick_nicholas)\
**Post date:** [July 3, 2010, 9:32pm UTC](https://www.ruby-forum.com/t/limit-ring-server-to-localhost-only-ringfinger-new-localhost-apparently-doesnt-work/191026/2 "2010-07-03T21:32:37Z")

</div>

Quoting koicat [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Am using RingyDingy.  
> Have altered call to Rinda::RingFinger.new to  
> Rinda::RingFinger.new(‘localhost’) in ring\_server.rb and in  
> ringy\_dingy.rb, but still get, intermittently, attachments to like  
> named services on my compatriots (in the same lan segment) which  
> causes things to disappear trying to run on their machine (or on mine  
> from theirs). Need to stop this behavior for development so we can  
> work independantly.  
> Any suggestions?

Is the ring\_server really running on localhost? My experience using  
‘localhost’ is mixed. I prefer to be explicit and use ‘127.0.0.1’.  
Check if  
it really is running on this address, e.g., ‘netstat -ant’ on most  
Linux/Unix  
based OS.

HTH,  
Jeffrey

---

<div class="post-metadata">

**Author:** ![patrick\_nicholas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a698b9/32.png) [@patrick\_nicholas](https://www.ruby-forum.com/u/patrick_nicholas)\
**Post date:** [July 21, 2010, 12:27am UTC](https://www.ruby-forum.com/t/limit-ring-server-to-localhost-only-ringfinger-new-localhost-apparently-doesnt-work/191026/3 "2010-07-21T00:27:18Z")

</div>

Thank you, Jeffrey.  
I will take a look at that. Am running under Windows (sigh) but  
netstat is similar.  
pat
