The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: Re: W800



That doesn't happen with the latest version - the hub sends messages
directly to the port and ip listed in the heatbeat message.
However, you say that it should send to the loopback address, and that
apps should bind to the loopback address.  This is different from what
Tom has been saying, which is that they should bind to a real local IP
(might explain some of the problems with xPLHal's hub and V3 apps!)

Anyway, I'll try changing the code to use the loopback address, and see
what happens.

Thanks

Mal

John B wrote:

> Hi Mal,
>
> > OK, the problem is a sockets related issue.  I used to bind
> > my socket to INADDR_ANY, which works fine with the hub in
> > xPLHal.  However, if I specify a ListenOnAddress in the
> > registry, then I have to bind to that instead, but I don't
> > get any messages from the hub in xPLHal (it's as if the
> > xPLHal hub doesn't work with ListenOnAddresses)
>
> I think there is an issue with your hub.
>
> When your hub sends out packets to it's hub clients, it seems to be
> broadcasting them to 255.255.255.255, rather than just sending them
out
> over the loopback address.
>
> So one machine with your hub installed is flooding the network with
> packets to ports 50000, 50001 etc.
> (at least that's what Ethereal shows)
>
> Hub clients (like the W800) should be binding to the loopback address.
>
> The "ListenOn" and "ListenTo" registry stuff is
only used for the hub's
> base port (3865).
> All communication with hub clients should be via the loopback
interface
> - otherwise traffic will spill onto the local network.
>
> Regards,
>
> John
>
>
> xPL Links: http://www.xplproject.org.uk http://www.xplhal.com
> http://www.xpl.myby.co.uk
> To Post a Message: ukha_xpl@xxxxxxx
> To Subscribe:  ukha_xpl-subscribe@xxxxxxx
> To Unsubscribe:  ukha_xpl-unsubscribe@xxxxxxx
>
>
>
------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
>
>     *  Visit your group "ukha_xpl
>       <http://groups.yahoo.com/group/ukha_xpl>"
on the web.
>
>     *  To unsubscribe from this group, send an email to:
>        ukha_xpl-unsubscribe@xxxxxxx
>       <mailto:ukha_xpl-unsubscribe@xxxxxxx?subject=Unsubscribe>
>
>     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>
>
------------------------------------------------------------------------
>




xPL Main Index | xPL Thread Index | xPL Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.