A Swift example project on how to use SSDP to discover services on the network as shown in this article - https://williamboles.com/discovering-whats-out-there-with-ssdp/
iOS 14 introduced a range of privacy features, one of which was to limit an app access to the local network. Especially if that app is attempting to discover what is on that network using multicasting (which is exactly what this example project is demonstrating). As such, in order to run this example on a device you will need to request that the com.apple.developer.networking.multicast
entitlement is enabled from Apple (the example works on the simulator without the entitlement being enabled). See this note for more details.