android-ssdp icon indicating copy to clipboard operation
android-ssdp copied to clipboard

Android Simple Service Discovery Protocol (Detect UPnP Players)

Simple Service Discovery Protocol (SSDP) Library for Android

SSDP is used as the discovery protocol for Universal Plug and Play (UPnP).

Use Case:

  • Discover all Sonos (UPnP) speakers on the current WiFi network

How:

  • Send M-SEARCH request via Multicast UDP
  • Receive Unicast UDP response from compatible devices

References:

  • https://tools.ietf.org/html/draft-cai-ssdp-v1-03#section-2.2.1
  • http://www.upnp.org/specs/arch/UPnP-arch-DeviceArchitecture-v1.1.pdf