miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to use UPNP_DeletePortMapping (always returns error 714)

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Compilation/Installation
View previous topic :: View next topic  
Author Message
stephanecharette



Joined: 10 Sep 2014
Posts: 1
Location: Canada

PostPosted: Wed Sep 10, 2014 12:59 am    Post subject: How to use UPNP_DeletePortMapping (always returns error 714) Reply with quote

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.
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Thu Sep 11, 2014 2:07 pm    Post subject: Reply with quote

I guess your router does need the remotehost argument.
please check with miniupnpc-1.9.20140911.tar.gz
and add 0.0.0.0 as third argument to upnpc -d
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Compilation/Installation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.