UPnP is a set of networking protocols that allows devices to connect seamlessly and simplify the implementation of networks in home (data sharing, communications, and entertainment) and corporate environments.
The goal of UPnP is plug and play connectivity where peripherals can be added or removed from the network without any configuration. It allows devices to connect automatically and operate seamlessly.
UPnP enabled devices can dynamically join a network, obtain an IP address, convey capabilities and learn about other devices on the network. This enables seamless discovery and control of networked devices and services.
UPnP uses existing technologies like IP, TCP, UDP,HTTP and XML. It defines device control protocols, event notification and service discovery protocols.
For a device to be UPnP compliant, it must support protocols like IP, TCP, UDP, HTTP, XML and IGMP, along with UPnP specific protocols on top of these standard protocols.
Some common UPnP services include: Media services, Media renderers, Printing services, Internet Gateways, Wi-Fi APs.
UPnP uses various ports like port1900 for SSDP discovery, port 80 for HTTP traffic, and various high numbered ports for events, presentation and control. The exact ports depend on the specific application or service. But standard port **** is commonly used.