Got info from here: https://stackoverflow.com/questions/18363833/how-can-i-list-upnp-server-renderer-in-command-line-console-mode-on-linux
Get the Upnp test tools
# apt-get install gupnp-tools
Example 1:
Find all Upnp devices (note their target names start with urn:…. It will hint at what service it is, ex: Layer3Forwarder, MediaServer, etc..)
# gssdp-discover -i eth1 --timeout=3
Example 2:
Find DLNA servers which are served via Upnp (which has a target of MediaServer, urn:schemas-upnp-org:device:MediaServer:1)
# gssdp-discover -i eth1 --timeout=3 --target=urn:schemas-upnp-org:device:MediaServer:1 Using network interface eth1 Scanning for resources matching urn:schemas-upnp-org:device:MediaServer:1 resource available USN: uuid:4d691234-444c-164e-1234-001f33eaacf1::urn:schemas-upnp-org:device:MediaServer:1 Location: http://10.1.1.11:8200/rootDesc.xml resource available USN: uuid:fa6abcde-266c-bc47-0689-eb93d584415c::urn:schemas-upnp-org:device:MediaServer:1 Location: http://10.1.1.50:32469/DeviceDescription.xml
The end