[zeromq-dev] multicast chat working only with DHCP networks

Pieter Hintjens ph at imatix.com
Sun May 11 20:40:14 CEST 2014


You don't need a nameserver for multicast to work, no. However when
you say "0MQ multicast", what do you mean exactly?

It's useful to make a minimal test case for your problem and provide
us that source code.

-Pieter

On Sun, May 11, 2014 at 5:28 PM, Andrew Simpson <simpsonar77 at yahoo.com> wrote:
> I am able to get it working without DHCP.  If I disable DHCP on the comptuer
> and set the IP address manually to the same IP as I'd get from DHCP and then
> set the nameserver in /etc/resolv.conf the same way that DHCP assigned (in
> my case:  nameserver 192.168.2.1) then the chat program works.  So I'm
> assuming that I need a nameserver on the network for multicast to work?
> (note:  my knowledge of networking is a bit limited)
> On , Andrew Simpson <simpsonar77 at yahoo.com> wrote:
>
> The Error that I get when not on DHCP:
>
>>>>TRACE     = org.zeromq.ZMQ$Socket.bind(Native Method)
> org.zeromq.ZMQException: Invalid argument(0x16)
>         at org.zeromq.ZMQ$Socket.bind(Native Method)
>
> On Sunday, May 11, 2014 2:52 PM, Andrew Simpson <simpsonar77 at yahoo.com>
> wrote:
>
> #ip route
> 172.16.18.0/24 dev vmnet1  proto kernel  scope link  src 172.16.18.1
> 192.168.159.0/24 dev vmnet8  proto kernel  scope link  src 192.168.159.1
> 192.168.122.0/24 dev virbr0  proto kernel  scope link  src 192.168.122.1
> 224.0.0.0/4 dev eth0  proto static  scope link
> default via 172.20.20.1 dev eth0  proto static
>
>
> On Sunday, May 11, 2014 2:45 PM, Arnaud Loonstra <arnaud at sphaero.org> wrote:
>
> On 05/11/2014 04:26 PM, Andrew Simpson wrote:
>> I have a 0MQ multicast chat program that only appears to work when the
>> computer is on a network with a DHCP server.  When I connect into a
>> simple, flat network (say 192.168.5.x) with 2 computers, chat does not
>> work.  Adding them back onto the network running DHCP, and getting their
>> IPs from DHCP, everything works fine.
>>
>> I'm on RHEL.6.  I have disabled iptables.  Any suggestions as to what's
>> different when using DHCP versus non-DHCP?
>>
>> Thanks!
>
> A routing table?
>
> --
> w: http://www.sphaero.org
> t: http://twitter.com/sphaero
>
> g:
> http://github.com/sphaero
> i: freenode: sphaero_z25
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
>
>
>
>
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>



More information about the zeromq-dev mailing list