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 

Always getting errors when trying to forward a port

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Bugs
View previous topic :: View next topic  
Author Message
KrawallKurt



Joined: 21 Nov 2014
Posts: 2

PostPosted: Fri Nov 21, 2014 4:25 pm    Post subject: Always getting errors when trying to forward a port Reply with quote

first post so I can copy my console output here
Back to top
View user's profile Send private message
KrawallKurt



Joined: 21 Nov 2014
Posts: 2

PostPosted: Fri Nov 21, 2014 4:25 pm    Post subject: Reply with quote

Hi,
I just installed upnpc on my Raspberry Pi and now want to open ports on my OpenWRT Router with miniupnp. Here is what I did:

Code:
$ upnpc -a 192.168.0.10 3389 3389 TCP
upnpc : miniupnpc library test client. (c) 2005-2013 Thomas Bernard
Go to http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
for more information.
List of UPNP devices found on the network :
 desc: http://192.168.0.1:5000/rootDesc.xml
 st: urn:schemas-upnp-org:device:InternetGatewayDevice:1

Found valid IGD : http://192.168.0.1:5000/ctl/IPConn
Local LAN ip address : 192.168.0.11
ExternalIPAddress = xxx.xxx.xxx.xxx
AddPortMapping(3389, 3389, 192.168.0.10) failed with code 718 (ConflictInMappingEntry)
GetSpecificPortMappingEntry() failed with code 714 (NoSuchEntryInArray)


I read this could be because the port is opened already, so I checked.

Code:
$ upnpc -l
upnpc : miniupnpc library test client. (c) 2005-2013 Thomas Bernard
Go to http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
for more information.
List of UPNP devices found on the network :
 desc: http://192.168.0.1:5000/rootDesc.xml
 st: urn:schemas-upnp-org:device:InternetGatewayDevice:1

Found valid IGD : http://192.168.0.1:5000/ctl/IPConn
Local LAN ip address : 192.168.0.11
Connection Type : IP_Routed
Status : Connected, uptime=2404568s, LastConnectionError : ERROR_NONE
  Time started : Fri Oct 24 22:15:02 2014
MaxBitRateDown : 8388608 bps (8.3 Mbps)   MaxBitRateUp 4194304 bps (4.1 Mbps)
ExternalIPAddress = xxx.xxx.xxx.xxx
 i protocol exPort->inAddr:inPort description remoteHost leaseTime
 0 TCP  6851->192.168.0.50:6851  'Hola' '' 0
 1 UDP 52879->192.168.0.40:52879 'Teredo' '' 0
 2 UDP 58138->192.168.0.40:58138 'Teredo' '' 0
 3 UDP 51749->192.168.0.40:51749 'Teredo' '' 0
 4 TCP 20360->192.168.0.10:4000  'NoMachine' '' 0
 5 UDP 50589->192.168.0.40:50589 'Teredo' '' 0
 6 UDP 61614->192.168.0.10:61614 'Teredo' '' 0
 7 UDP 29318->192.168.0.10:29318 'NAT-PMP 29318 udp' '' 2061
 8 TCP 29318->192.168.0.10:29318 'NAT-PMP 29318 tcp' '' 2061
GetGenericPortMappingEntry() returned 713 (SpecifiedArrayIndexInvalid)


Is the list meant to fail with code 713?!

Anything I did wrong?
Thanks in advance
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1593

PostPosted: Mon Nov 24, 2014 2:44 pm    Post subject: Reply with quote

Quote:
Is the list meant to fail with code 713?!

yes. The way to get the list is to get index 0, then 1, etc.
until error "SpecifiedArrayIndexInvalid" is reached.

I think you cannot add portmapping to 192.168.0.10 port 3389
because you are using upnpc on machine with IP 192.168.0.11 and miniupnpd secure mode is enabled.
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
mbierman



Joined: 21 Sep 2023
Posts: 1

PostPosted: Thu Sep 21, 2023 11:17 pm    Post subject: Same issue Reply with quote

I'm also getting

Code:
$ upnpc -a 192.168.0.40 80 4001 TCP
upnpc : miniupnpc library test client, version 2.2.5.
 (c) 2005-2023 Thomas Bernard.
Go to http://miniupnp.free.fr/ or https://...
for more information.
List of UPNP devices found on the network :
 desc: http://192.168.0.1:33917/rootDesc.xml
 st: urn:schemas-upnp-org:device:InternetGatewayDevice:1

Found valid IGD : http://...
Local LAN ip address : 192.168.0.40
ExternalIPAddress = xxx.xxx.xxx.xxx
AddPortMapping(4001, 80, 192.168.0.40) failed with code 718 (ConflictInMappingEntry)


There is only one network interface on the machine and it is the .40 address. How can I get this to work?
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1593

PostPosted: Thu Sep 28, 2023 6:23 am    Post subject: Re: Same issue Reply with quote

mbierman wrote:
I'm also getting

Code:
$ upnpc -a 192.168.0.40 80 4001 TCP
upnpc : miniupnpc library test client, version 2.2.5.
 (c) 2005-2023 Thomas Bernard.
Go to http://miniupnp.free.fr/ or https://...
for more information.
List of UPNP devices found on the network :
 desc: http://192.168.0.1:33917/rootDesc.xml
 st: urn:schemas-upnp-org:device:InternetGatewayDevice:1

Found valid IGD : http://...
Local LAN ip address : 192.168.0.40
ExternalIPAddress = xxx.xxx.xxx.xxx
AddPortMapping(4001, 80, 192.168.0.40) failed with code 718 (ConflictInMappingEntry)


There is only one network interface on the machine and it is the .40 address. How can I get this to work?


Port 4001 is probably already used.
_________________
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 -> miniupnpd Bugs 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.