如何在 Linux 上的命令行(控制台模式)中列出 upnp 服务器/渲染器?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18363833/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-07 00:37:34  来源:igfitidea点击:

How can I list upnp server/renderer in command line (console mode) on linux?

linuxconsoleupnp

提问by scanpat

I want to list my available upnp/dlna renderers on my local network in console mode.

我想以控制台模式在本地网络上列出可用的 upnp/dlna 渲染器。

I can do that with gupnp but not in console mode

我可以用 gupnp 但不能在控制台模式下

回答by Jussi Kukkonen

gssdp-discover (from gupnp-tools) will list devices and services advertized over SSDP:

gssdp-discover(来自 gupnp-tools)将列出通过 SSDP 发布的设备和服务:

gssdp-discover -i wlan0 --timeout=3

You can also specify the target (as uuid or a service/device type):

您还可以指定目标(作为 uuid 或服务/设备类型):

gssdp-discover -i wlan0  --timeout=3 --target=urn:schemas-upnp-org:device:MediaRenderer:1