Universal Plug and Play (UPnP) device. Universal Plug and Play (UPnP) device. See [UPNP] for UPnP discovery and utility functions. Provides low-level access to UPNP control commands. Allows to manage port mappings (port forwarding) and to query network information of the device (like local and external IP address and status). Note that methods on this class are synchronous and block the calling thread. Adds a port mapping to forward the given external port on this [UPNPDevice] for the given protocol to the local machine. See [method UPNP.add_port_mapping]. Deletes the port mapping identified by the given port and protocol combination on this device. See [method UPNP.delete_port_mapping]. Returns [code]true[/code] if this is a valid IGD (InternetGatewayDevice) which potentially supports port forwarding. Returns the external IP address of this [UPNPDevice] or an empty string. URL to the device description. IDG control URL. Address of the local machine in the network connecting it to this [UPNPDevice]. IGD service type. IGD status. See [enum IGDStatus]. Service type. OK. HTTP error. Empty HTTP response. Returned response contained no URLs. Not a valid IGD. Disconnected. Unknown device. Invalid control. Memory allocation error. Unknown error.