Use MAC address to associate device profile

Issue #990 wontfix
Yann R created an issue

Currently, Serviio uses IP address to associate a profile to a device. Yet, many home network routers are simply allocating dynamically IP addresses through DHCP and most of the time the IP address of a device not always connected (like a game console, or a TB set) can change.

So as not to force the home user to change its network and define static IP addresses for his devices, could it be possible to use MAC addresses instead.

Some coders seem to say it's possible from Java:

Regards.

Comments (4)

  1. Petr Nejedly repo owner

    Already looked into this before. The examples linked are to get the MAC address of the local NIC, ie the Serviio server, not the devices that connect to it.

  2. Mike Clayton

    Can you use the UUID from the XML, now that you can assign accounts to the devices it’s a pain when the device gets a new IP and disassocates from the account.

    <root xmlns="urn:schemas-upnp-org:device-1-0" xmlns:dlna="urn:schemas-dlna-org:device-1-0" xmlns:pnpx="http://schemas.microsoft.com/windows/pnpx/2005/11" xmlns:df="http://schemas.microsoft.com/windows/2008/09/devicefoundation">

    <specVersion><major>1</major><minor>0</minor></specVersion>

    <device><deviceType>urn:schemas-upnp-org:device:MediaRenderer:1</deviceType><friendlyName>[LG] webOS TV SJ850V</friendlyName><manufacturer>LG Electronics.</manufacturer><manufacturerURL>http://www.lge.com</manufacturerURL><modelDescription>LG WebOSTV DMRplus</modelDescription><modelName>LG TV</modelName><modelURL/><modelNumber>1.0</modelNumber><serialNumber/><UDN>uuid:138016f6-17db-c342-aa2d-b600762e90ca</UDN><pnpx:X_compatibleId>MS_DigitalMediaDeviceClass_DMR_V001</pnpx:X_compatibleId><pnpx:X_deviceCategory>MediaDevices</pnpx:X_deviceCategory><df:X_deviceCategory>Multimedia.DMR</df:X_deviceCategory><df:X_modelId>LG Digital Media Renderer TV</df:X_modelId><lge:X_LG_DLNA_DOC xmlns:lge="urn:lge-com:device-1-0">1.0</lge:X_LG_DLNA_DOC><dlna:X_DLNADOC xmlns:dlna="urn:schemas-dlna-org:device-1-0">DMR-1.50</dlna:X_DLNADOC>

  3. Petr Nejedly repo owner

    It’s already used, for the devices that support devicedescription. For those that don’t, IP is required.

  4. Log in to comment