Universal Plug and Play (UPnP) and DLNA media servers use the Simple Service Discovery Protocol (SSDP) over UDP multicast port 1900 to broadcast device metadata on local networks. Discovering UPnP devices on Linux is useful for debugging smart TVs, routers, and IoT hardware.
Method 1: Using gssdp-discover CLI Tool
# Install GSSDP utilities on Ubuntu/Debian
sudo apt update
sudo apt install -y gssdp-tools
# Discover all UPnP devices broadcasting on active network
gssdp-discover --target=upnp:rootdeviceMethod 2: Using Nmap UPnP Broadcast Script
# Scan local network subnet for UPnP devices via Nmap NSE script
nmap -sU -p 1900 --script=broadcast-upnp-info 192.168.1.0/24
Comments and corrections