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



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&w3=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&.sig=_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=d2G6YVkW-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=9xqmZjMntiOfVEPLIpwKUg>
> 	Protocol analysis
> <http://groups.yahoo.com/gads?t=ms&k=Protocol+analysis&w1=Protocol+analyzer&w2=Protocol+converter&w3=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+protocol&w4=Tcp&w5=Protocol+analysis&w6=Protocol&c=6&s=111&.sig=OPnkI6GadMASTgKewyeqDQ>
>
>
>
>
------------------------------------------------------------------------
> 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.