jheling / freeathome

Free@Home component for Home Assistant
103 stars 37 forks source link

Ports in use #53

Closed tbloth closed 4 years ago

tbloth commented 4 years ago

More a general question. It looks like OpenHAB uses Port 5280 (at least my neighbor told me) where I can see 5222 hard codes in freeathome. What's the difference? nmap shows both ports open at my SysAP

Thanks!

jheling commented 4 years ago

I cannot remember why I started with 5222 as the port for the connection, maybe because this is used by slixmpp. I have used the project of Stefan Stadlberger (https://github.com/sstadlberger/home) for figuring out how the free@home interface works. 5222 seems to be the official port for an xmpp client connection over tcp. 5280 is used for the BOSH protocol ( Bidirectional-streams Over Synchronous HTTP). I think openhab uses this connection method.

tbloth commented 4 years ago

Yeah, thanks. Makes sense!

miezie commented 4 years ago

Does it: https://en.wikipedia.org/wiki/BOSH_(protocol) ?

;)