It seems like your firewall might be blocking UPnP traffic from your router, which could prevent the router’s response to the UPnP request from reaching your machine.
If you’re using the default firewall on Linux Mint, which is typically ‘ufw’, you can allow incoming UPnP traffic from your router by executing the following command:
ufw allow from 192.168.1.1 port 1900 to any proto udp
After allowing this traffic, you can initiate UPnP mapping by running:
/etc/NX/nxserver --upnpmap
Once done, UPnP should be operational on your machine. Remember to repeat this process on every machine where UPnP functionality is required.
Note: To find your router’s IP address, you can use the following command:
ip route | grep default
If you’re using any additional outer firewalls, ensure to add a similar firewall rule to allow UPnP traffic as mentioned above.