Device Discovery Methods

Want to write your own code to work with a HDHomeRun or work with the HDHomeRun DVR? We are happy to help with concepts, APIs, best practices.
Post Reply
mski
Posts: 11
Joined: Sun Aug 06, 2017 10:34 am

Device Discovery Methods

Post by mski »

Which device discovery methods are available to find HDHomeRun on the network?

I’ve found:
o http://ipv4-api.hdhomerun.com/discover JSON external API
o mDNS
— hdhomerun.local
— hdhr-xxxxxxxx.local (where xxxxxxxx is the device id)
— xxxxxxxx.local where xxxxxxxx is the device id
o others?

nickk
Silicondust
Posts: 15926
Joined: Tue Jan 13, 2004 9:39 am

Re: Device Discovery Methods

Post by nickk »

The official method is hdhomerun_discover.[ch] in libhdhomerun.

You can also use UPnP to discover tuners, through not the DVR service.

Nick

mski
Posts: 11
Joined: Sun Aug 06, 2017 10:34 am

Re: Device Discovery Methods

Post by mski »

nickk wrote:
Thu May 28, 2020 3:19 pm
can also use UPnP to discover tuners
Thanks for the pointer. Specifically, is the discovery method used the Simple Service Discovery Protocol (SSDP)?

Regarding (un)official methods, would you like me to avoid using the hosted API?

nickk
Silicondust
Posts: 15926
Joined: Tue Jan 13, 2004 9:39 am

Re: Device Discovery Methods

Post by nickk »

Best to avoid the hosted API. It is good for bring-up tests but won't work with all ISPs.

jasonl
Expert
Posts: 15274
Joined: Sun Oct 28, 2007 9:23 pm

Re: Device Discovery Methods

Post by jasonl »

The web API is a reasonable option as a fallback, or as the unofficial Kodi addon does, a default-disabled configuration option for those who can't use SSDP or broadcast discovery for various reasons. As Nick mentioned, it doesn't work at all on ISPs that use carrier-grade NAT, which includes AT&T Mobility (LTE/fixed wireless) and Hughesnet satellite in the US, which make up a not insignificant portion of the userbase.

Post Reply