30-10-2024 05:57 AM
Hi,
I have an 4G Mini Mobile wifi router with uPnP enabled, s/w Version 4G_WiFi_V01.06.
I'm trying to setup port forwarding for development but am always getting the same error:
failed with code 501 (Action Failed)
Also, just trying to list any existing mappings that maybe already present on the router I get the error SpecifiedArrayIndexInvalid
I have tried this from a Raspberry Pi and macOS using 3 different clients:
The router has an available upnp endpoint but I have to specify a flag to overcome a "not connected?" error, even though I'm using the router right now to post this. Is that error and a blank "ExternalIPAddress" and "Status : Disconnected" underlying causes?
Examples
Getting connection status:
Attempt to map a port:
upnpc -i -e "mytest" -a 192.168.1.206 8080 8080 TCP
Found a (not connected?) IGD : http://192.168.1.1:5000/ctl/IPConn
Trying to continue anyway
Local LAN ip address : 192.168.1.206
ExternalIPAddress =
AddPortMapping(8080, 8080, 192.168.1.206) failed with code 501 (Action Failed)
Listing mappings:
upnpc -i -l
Found a (not connected?) IGD : http://192.168.1.1:5000/ctl/IPConn
Trying to continue anyway
Local LAN ip address : 192.168.1.192
Connection Type : IP_Routed
Status : Disconnected, uptime=8990s, LastConnectionError : ERROR_NONE
Time started : Wed Oct 30 03:19:46 2024
MaxBitRateDown : 8388608 bps (8.3 Mbps) MaxBitRateUp 4194304 bps (4.1 Mbps)
GetExternalIPAddress failed. (empty string)
i protocol exPort->inAddr:inPort description remoteHost leaseTime
GetGenericPortMappingEntry() returned 713 (SpecifiedArrayIndexInvalid)
Does anyone have any idea?
Thanks in advance.