Page 1 of 1

Suggestion re: renderer profile selection

PostPosted: Sun Dec 25, 2011 2:48 pm
by ccd
So, I've just installed Serviio on my Synology Diskstation (thanks to the easy-to-install package available at http://pcloadletter.co.uk/2011/09/23/se ... y-package/), but I've got one slight bit of discomfort: When selecting a renderer profile for a DLNA device on my network, Serviio always identifies the devices on my network by their IP address. Unfortunately, since most of the devices on my network get their addresses via DHCP, this means that as they're power cycled, their IP addresses will change.

Might it not be a good idea to take the small extra step to get the MAC address associated with a given IP when a scan for DLNA devices is performed, and use the MAC address as the unique identifier?

-ccd

Re: Suggestion re: renderer profile selection

PostPosted: Sun Dec 25, 2011 6:28 pm
by Illico
ccd wrote:on my network get their addresses via DHCP, this means that as they're power cycled, their IP addresses will change.

You could also fix all your devices IP address according to there MAC address too. its very easy on router config section.For me DHCP is only enable for new nomad devices...all home devices are fixed.

Re: Suggestion re: renderer profile selection

PostPosted: Sun Dec 25, 2011 8:28 pm
by zip
you can't get the MAC address of a device on the network, at least not with Java

Re: Suggestion re: renderer profile selection

PostPosted: Mon Dec 26, 2011 12:36 am
by ccd
Illico wrote:
ccd wrote:on my network get their addresses via DHCP, this means that as they're power cycled, their IP addresses will change.

You could also fix all your devices IP address according to there MAC address too. its very easy on router config section.For me DHCP is only enable for new nomad devices...all home devices are fixed.


Yeahhh...I thought of that, but the television seems to get its thong in a wad if I do manual IP configuration, dropping off the network frequently and requiring manual re-establishment.

-ccd

Re: Suggestion re: renderer profile selection

PostPosted: Mon Dec 26, 2011 12:41 am
by ccd
zip wrote:you can't get the MAC address of a device on the network, at least not with Java


Do you not have access to ni.getHardwareAddress() ? Obviously, that won't work on stuff that's outside the local subnet, but if someone's trying to stream outside their local LAN, then figuring out the address of the target device is probably the least vexing of the issues they're facing.

-ccd

Re: Suggestion re: renderer profile selection

PostPosted: Mon Dec 26, 2011 8:53 am
by zip
ccd wrote:
zip wrote:you can't get the MAC address of a device on the network, at least not with Java


Do you not have access to ni.getHardwareAddress() ? Obviously, that won't work on stuff that's outside the local subnet, but if someone's trying to stream outside their local LAN, then figuring out the address of the target device is probably the least vexing of the issues they're facing.

-ccd

That works for the local NI on the Serviio machine, you can't do that for a NI on a remote box.

Re: Suggestion re: renderer profile selection

PostPosted: Mon Dec 26, 2011 9:15 am
by ccd
zip wrote:
ccd wrote:
zip wrote:you can't get the MAC address of a device on the network, at least not with Java


Do you not have access to ni.getHardwareAddress() ? Obviously, that won't work on stuff that's outside the local subnet, but if someone's trying to stream outside their local LAN, then figuring out the address of the target device is probably the least vexing of the issues they're facing.

-ccd

That works for the local NI on the Serviio machine, you can't do that for a NI on a remote box.


Really? Boo. Sorry...I'm not a big Java guy- I still do most of my programming in assembly language.

Given that, maybe the device's UPnP UDN attribute could be used instead.

-ccd

Re: Suggestion re: renderer profile selection

PostPosted: Mon Dec 26, 2011 12:03 pm
by zip
It is used, when present. Some devices don't make this available (don't present themselves as UPnP devices when searched for)