By default, UPNP is already activated. If not, follow these steps:
Enter the login page of your FRITZ!Box, typically http://fritz.box or http://192.168.178.1 and login.
Click on “Settings” in the overview.
Starting from version 8.25, the option “Allow independent port sharing and the disconnection and reconnection of the internet connection for this device” must be explicitly enabled for the respective device for security reasons.
From original Changelog for 8.25 in german:
- Änderung Die Einstellung für ein Heimnetzgerät, selbständig Portfreigaben über UPnP oder TR-064 einzurichten, legt nun auch fest, ob das Heimnetzgerät eine Trennung der Internetverbindung auslösen kann.
Go to Internet -> Permit Access…
Click on Add device for sharing/permit access and enable the option “Allow independent port sharing and the disconnection and reconnection of the internet connection for this device.”
Script:
[[[HSRC]]]
[[[STEP]]]
[[[REQUEST]]]
POST /upnp/control/WANIPConn1 HTTP/1.1
Host: %%%routerip%%%:49000
Content-Type: text/xml; charset="utf-8"
SoapAction:urn:schemas-upnp-org:service:WANIPConnection:1#ForceTermination
<?xml version='1.0' encoding='utf-8'?> <s:Envelope s:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' xmlns:s='http://schemas.xmlsoap.org/soap/envelope/'> <s:Body> <u:ForceTermination xmlns:u='urn:schemas-upnp-org:service:WANIPConnection:1' /> </s:Body> </s:Envelope>
[[[/REQUEST]]]
[[[/STEP]]]
[[[/HSRC]]]