I have a raspberry pi 4 at home behind a router(netgear nighthawk) and I want to run a command to setup port forwarding on the router for port 11911/TCP. The internal IP of the PI is 192.168.1.20 and I tried to use "upnpc" as:
pi@raspberrypi:~ $ upnpc -a 192.168.1.20 11941 11941 TCP
upnpc : miniupnpc library test client, version 2.1.
(c) 2005-2018 Thomas Bernard.
Go to http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/
for more information.
List of UPNP devices found on the network :
Found a (not connected?) IGD : http://192.168.1.1:5000/Public_UPNP_C3
Trying to continue anyway
Local LAN ip address : 192.168.1.20
AddPortMapping(11941, 11941, 192.168.1.20) failed with code -3 (UnknownError)
I am not sure what is wrong with this...