uPnP Port 1900 open/closed solution for FritzBox

This was discussed in Cannot use UPnP after update - #5 by Vanitarium
but has been closed. I am posting here a solution for FritzBox but it may be valid for other routers too?