stephanecharette
Joined: 10 Sep 2014 Posts: 1 Location: Canada
|
Posted: Wed Sep 10, 2014 12:59 am Post subject: How to use UPNP_DeletePortMapping (always returns error 714) |
|
|
I can create a mapping, list mappings, get my external address, but when I try to delete a mapping it always fails with 714 NoSuchEntryInArray.
When I use the command-line tool, I get the same error. Curious to know if it is common to encounter home routers that prevent any deletions of mappings. And if so, then how can an application know how much time is left on the lease so it knows when the mapping needs to be re-created?
Here is an (edited) example of what I'm seeing:
Code: |
$ upnpc -a 192.168.1.20 22 12345 TCP
Found valid IGD : http://192.168.1.1:5431/uuid:207600a3-efd0-d0ef-a300-762076a3d00002/WANIPConnection:1
Local LAN ip address : 192.168.1.20
ExternalIPAddress = x.x.93.146
InternalIP:Port = 192.168.1.20:22
external x.x.93.146:12345 TCP is redirected to internal 192.168.1.20:22 (duration=604800)
$ upnpc -l
...
14 TCP 12345->192.168.1.20:22 'libminiupnpc' '0.0.0.0' 604800
GetGenericPortMappingEntry() returned 713 (SpecifiedArrayIndexInvalid)
$ upnpc -d 12345 TCP
Found valid IGD : http://192.168.1.1:5431/uuid:207600a3-efd0-d0ef-a300-762076a3d00002/WANIPConnection:1
Local LAN ip address : 192.168.1.20
UPNP_DeletePortMapping() returned : 714
|
I'm using miniupnpc v1.6-3ubuntu2.14.04.1, and my home router/nat upnp device is an Actiontec V1000H. |
|