FAQ  •  Register  •  Login

Suggestion re: renderer profile selection

<<

ccd

Serviio newbie

Posts: 4

Joined: Sun Dec 25, 2011 2:38 pm

Post Sun Dec 25, 2011 2:48 pm

Suggestion re: renderer profile selection

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

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Sun Dec 25, 2011 6:28 pm

Re: Suggestion re: renderer profile selection

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.
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Dec 25, 2011 8:28 pm

Re: Suggestion re: renderer profile selection

you can't get the MAC address of a device on the network, at least not with Java
<<

ccd

Serviio newbie

Posts: 4

Joined: Sun Dec 25, 2011 2:38 pm

Post Mon Dec 26, 2011 12:36 am

Re: Suggestion re: renderer profile selection

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

ccd

Serviio newbie

Posts: 4

Joined: Sun Dec 25, 2011 2:38 pm

Post Mon Dec 26, 2011 12:41 am

Re: Suggestion re: renderer profile selection

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

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Dec 26, 2011 8:53 am

Re: Suggestion re: renderer profile selection

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.
<<

ccd

Serviio newbie

Posts: 4

Joined: Sun Dec 25, 2011 2:38 pm

Post Mon Dec 26, 2011 9:15 am

Re: Suggestion re: renderer profile selection

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

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Dec 26, 2011 12:03 pm

Re: Suggestion re: renderer profile selection

It is used, when present. Some devices don't make this available (don't present themselves as UPnP devices when searched for)

Return to Feature requests

Who is online

Users browsing this forum: Google [Bot] and 23 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.