# Re: Reliable Messaging With Ruby and DRb

**URL:** <https://www.ruby-forum.com/t/re-reliable-messaging-with-ruby-and-drb/109156>\
**Category:** Ruby\
**Created:** [July 11, 2007, 11:35pm UTC](https://www.ruby-forum.com/t/re-reliable-messaging-with-ruby-and-drb/109156 "2007-07-11T23:35:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stickstone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/6f9a4e/32.png) [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Post date:** [July 11, 2007, 11:35pm UTC](https://www.ruby-forum.com/t/re-reliable-messaging-with-ruby-and-drb/109156/1 "2007-07-11T23:35:45Z")

</div>

> My local IP address is 10.8.8.41. I could not figure out why when I  
> use 127.0.0.1 the code works but fails when I use my IP address.

At a guess (since you don’t show the server code), I imagine the server  
is  
bound to IP address 127.0.0.1 - the loopback interface - and therefore  
doesn’t accept connections on any other interface.

This is easy to verify:

telnet 127.0.0.1 6438  
telnet 10.8.8.41 6438

Do you get a successful connection in the first case, but “connection  
refused” in the second case?

If so, all you need to do is configure your server to bind to address  
0.0.0.0. This means “all interfaces on the system”

HTH,

Brian.

---

<div class="post-metadata">

**Author:** ![stickstone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/6f9a4e/32.png) [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Post date:** [July 12, 2007, 3:43pm UTC](https://www.ruby-forum.com/t/re-reliable-messaging-with-ruby-and-drb/109156/2 "2007-07-12T15:43:16Z")

</div>

Reliable Messaging uses DRb::DRbServer to expose the QueueManager.

2007/7/12, Brian C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> > My local IP address is 10.8.8.41. I could not figure out why when I  
> > use 127.0.0.1 the code works but fails when I use my IP address.

ACL (access control list) passes to DRbServer by reliable-msg  
allows “localhost” only and deny others. So you can access via loopback  
address. Also DRb listen address is coded as “localhost”.  
These issue is reported here  
[http://www.ruby-doc.org/stdlib/libdoc/drb/rdoc/index.html](http://www.ruby-doc.org/stdlib/libdoc/drb/rdoc/index.html)  
.

Under normal conditions, you can set ACL by a configuration file, e.g.  
queues.cfg.  
But there is a bug in current gem release (1.1.0), so configurations of  
drb  
is not reflected.  
It was fixed in CVS repository.

You can change the source installed by gem or use source from CVS.

Best Regards,  
shino
