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: W800


  • Subject: Re: W800
  • From: "Mal Lansell" <mal@xxxxxxxxxxx>
  • Date: Thu, 22 Sep 2005 14:17:42 -0000

Well in that case, my hub (the new one I put up on Sunday) is doing
the right thing - it's the hub in xPLHal that is misbehaving by
binding to 0.0.0.0, no matter what is in ListenOn, although to be
fair, it was written before any of the V3 improvements were made,
when the multi-network card problem had not been addressed.

I can't make my applications work with the xPLHal hub AND conform to
the new way of doing things.  Since we're moving to a standalone hub
this should not be a problem (assuming all the stand alones adhere
to the new behaviour).

Mal



--- In ukha_xpl@xxxxxxx, Tom Van den Panhuyzen <tomvdp@g...>
wrote:
> Very short msg, do not have much time.  But to make sure Mal is not
> waisting too much time:
>
> - ListenOn is used by both xpl apps and hub to listen for incoming
traffic
> - ListenOn is used to send packets *from* by both apps and hub
(apps
> broadcast from there, hub sends directly to a client's port from
> there)
> - if you bind to 0.0.0.0 (indeed 127.0.0.1 is not possible) then
> windows arbitrarily chooses an IP address to send from, that is not
> what we want in case of multiple IP addresses.
> - flooding the LAN... ?   An application sends out msgs to the
whole
> LAN, the hub sends out msgs locally to 1 pc.  ListenOn helps to
choose
> the "right side" of the LAN.
>
> ListenOn solves the double (or tripple in my case) xpl messages
issues
> and solves firewall issues.
>
> The ListenTo setting is merely a security addition.
>
> Hth,
> Tom
>
>
> On 9/22/05, Mal Lansell <mal@l...> wrote:
> > Hmmm, I can't bind a socket to the loopback address (127.0.0.1) -
I get
> > a WSAEADDRNOTAVAIL error.
> > Are you sure you don't mean the wildcard address (0.0.0.0)
instead?
> > This is what xPLHal binds to, and if I use it then I can
communicate
> > with the xPLHub just fine.
> >
> > The trouble is, I thought part of the V3 fixes was to stop using
> > 0.0.0.0, because on machine with multiple network cards this
means you
> > pick up messages from both.
> >
> > Mal
> >
> >
> >
> > Mal Lansell wrote:
> >
> > > 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 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
> > >
> > >
> > >
> > > SPONSORED LINKS
> > > Protocol analyzer
> > >
> > <http://groups.yahoo.com/gads?
t=ms&k=Protocol+analyzer&w1=Protocol+analyzer&w2=Protocol+converter&w
3=Sip+protocol&w4=Tcp&w5=Protocol+analysis&w6=Protocol&c=6&s=111&.sig
=QulmGKu5OpHgigyaWFXqqA>
> > >       Protocol converter
> > >
> > <http://groups.yahoo.com/gads?
t=ms&k=Protocol+converter&w1=Protocol+analyzer&w2=Protocol+converter&
w3=Sip+protocol&w4=Tcp&w5=Protocol+analysis&w6=Protocol&c=6&s=111&.si
g=_Gav_2JNLbgwjsCn8RqM-w>
> > >       Sip protocol
> > >
> > <http://groups.yahoo.com/gads?
t=ms&k=Sip+protocol&w1=Protocol+analyzer&w2=Protocol+converter&w3=Sip
+protocol&w4=Tcp&w5=Protocol+analysis&w6=Protocol&c=6&s=111&.sig=d2G6
YVkW-P5WBFmpuWQ3Zw>
> > >
> > > Tcp
> > >
> > <http://groups.yahoo.com/gads?
t=ms&k=Tcp&w1=Protocol+analyzer&w2=Protocol+converter&w3=Sip+protocol
&w4=Tcp&w5=Protocol+analysis&w6=Protocol&c=6&s=111&.sig=9xqmZjMntiOfV
EPLIpwKUg>
> > >       Protocol analysis
> > >
> > <http://groups.yahoo.com/gads?
t=ms&k=Protocol+analysis&w1=Protocol+analyzer&w2=Protocol+converter&w
3=Sip+protocol&w4=Tcp&w5=Protocol+analysis&w6=Protocol&c=6&s=111&.sig
=j5RxaJ5TSW2NTgWhIna4qQ>
> > >       Protocol
> > >
> > <http://groups.yahoo.com/gads?
t=ms&k=Protocol&w1=Protocol+analyzer&w2=Protocol+converter&w3=Sip+pro
tocol&w4=Tcp&w5=Protocol+analysis&w6=Protocol&c=6&s=111&.sig=OPnkI6Ga
dMASTgKewyeqDQ>
> > >
> > >
> > >
> > >
> > -----------------------------------------------------------------
-------
> > > 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 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" on the web.
> >
> >  To unsubscribe from this group, send an email to:
> >  ukha_xpl-unsubscribe@xxxxxxx
> >
> >  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
> >  To unsubscribe from this group, send an email to:
> >  ukha_xpl-unsubscribe@xxxxxxx
> >
> >  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
> >  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
> > ________________________________
> >





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.