cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to create uPnP port mapping "failed with code 501 (Action Failed)"

ferric
Visitor

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:

  1. upnpc CLI command ( https://github.com/miniupnp/miniupnp ).  v.2.2.4 and v2.2.8
  2. portmapper Java GUI (https://sourceforge.net/projects/upnp-portmapper/)
  3. upnp router controller GUI (https://snapcraft.io/install/upnp-router-control/raspbian)

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:

 
upnpc -i -s
 
List of UPNP devices found on the network :
 st: urn:schemas-upnp-org:device:InternetGatewayDevice:1
 
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
Connection Type : IP_Routed
Status : Disconnected, uptime=7259s, LastConnectionError : ERROR_NONE
  Time started : Wed Oct 30 03:19:47 2024
MaxBitRateDown : 8388608 bps (8.3 Mbps)   MaxBitRateUp 4194304 bps (4.1 Mbps)
GetExternalIPAddress failed. (empty string)
Bytes:   Sent:        0 Recv:        0
Packets: Sent:        0 Recv:        0

 

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.

0 REPLIES 0