NAT Port Mapping is a convenient way to dynamically forward ports for clients, it is quite widely used and appreciated for its simplicity. Unfortunately, sometimes implementation on the application side is lacking. In such cases, and also if you need to deal with a firewall (UFW in this example), you can do a quick fix with some shellscripting and natpmpc utility.