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 

Port Map Unsuccessful - Error 3

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



Joined: 06 Jun 2015
Posts: 3
Location: Australia

PostPosted: Sat Jun 06, 2015 2:01 pm    Post subject: Port Map Unsuccessful - Error 3 Reply with quote

Hi there,

miniupnpc is exactly what I'm looking for - if it is able to work!

Unfortunately it has been unsuccessful in creating a rule on my D-Link DSL-2880AL.

Please see below and assist if possible:

Code:
#upnpc -a `ifconfig wlan | grep "inet addr" | cut -d : -f 2 | cut -d " " -f 1` 10000 80 TCP
upnpc : miniupnpc library test client, version 1.9.
 (c) 2005-2014 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.1.6:2869/upnphost/udhisapi.dll?content=uuid:959fb1c7-d8b4-4b74-9917-02998f192655
 st: upnp:rootdevice

 desc: http://192.168.1.10:2869/upnphost/udhisapi.dll?content=uuid:a6374151-7ddb-4c3a-a699-8aa9adcda1ed
 st: upnp:rootdevice

 desc: http://192.168.1.1:1990/WFADevice.xml
 st: upnp:rootdevice

UPnP device found. Is it an IGD ? : http://192.168.1.6:2869/
Trying to continue anyway
Local LAN ip address : 192.168.1.20
GetExternalIPAddress failed.
AddPortMapping(80, 10000, 192.168.1.20) failed with code -3 (UnknownError)
GetSpecificPortMappingEntry() failed with code -3 (UnknownError)


It appears to miss the fact that 192.168.1.1 is the IGD and I am guessing it tries to configure on 192.168.1.6.

I attempted to add the -u option:

Code:
upnpc -u http://192.168.1.1:1990/WFADevice.xml -a `ifconfig wlan | grep "inet addr" | cut -d : -f 2 | cut -d " " -f 1` 5900 5900 TCP


and got the following error:

Code:
upnpc : miniupnpc library test client, version 1.9.
 (c) 2005-2014 Thomas Bernard.
Go to http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
for more information.
Found valid IGD : http://192.168.1.1:1990/
Local LAN ip address : 192.168.1.20
GetExternalIPAddress failed.
GetSpecificPortMappingEntry() failed with code -1 (Miniupnpc Unknown Error)


Any assistance on this matter would be greatly appreciated
Back to top
View user's profile Send private message
martyk



Joined: 06 Jun 2015
Posts: 3
Location: Australia

PostPosted: Sat Jun 06, 2015 2:03 pm    Post subject: Reply with quote

This is the contents of the xml

Code:
<root><specVersion><major>1</major><minor>0</minor></specVersion><device><deviceType>urn:schemas-wifialliance-org:device:WFADevice:1</deviceType><friendlyName>WFADevice</friendlyName><manufacturer>D-Link Corporation.</manufacturer><manufacturerURL>http://www.dlink.com</manufacturerURL><modelDescription>Wireless Device</modelDescription><modelName>WPS</modelName><modelNumber>X1</modelNumber><serialNumber>0000001</serialNumber><UDN>uuid:.....</UDN><serviceList><service><serviceType>urn:schemas-wifialliance-org:service:WFAWLANConfig:1</serviceType><serviceId>urn:wifialliance-org:serviceId:WFAWLANConfig1</serviceId><SCPDURL>/x_wfawlanconfig.xml</SCPDURL><controlURL>/control?WFAWLANConfig</controlURL><eventSubURL>/event?WFAWLANConfig</eventSubURL></service></serviceList></device></root>
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Sun Jun 07, 2015 7:53 pm    Post subject: Reply with quote

192.168.1.1 is not an IGD, but a WFADevice
that's the problem
_________________
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 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.