Since you’ve already manually forwarded port 4000 on your router, utilizing UPnP for the same purpose might be unnecessary.
If you still want to use UPnP, I recommend enabling communication from your network or router to your Ubuntu Studio. You can do that by executing.
sudo ufw allow from 192.168.1.0/24
Replace 192.168.1.0/24 with the appropriate subnet for your network.
I would like to add a note that UPnP is using UDP port 1900 and TCP port 2869, and you might need to enable its communication depending on how your firewall is configured.
running
sudo ufw allow 1900/udp
sudo ufw allow 2869/tcp
sudo ufw reload