View previous topic :: View next topic |
Author |
Message |
martyk
Joined: 06 Jun 2015 Posts: 3 Location: Australia
|
Posted: Sat Jun 06, 2015 2:01 pm Post subject: Port Map Unsuccessful - Error 3 |
|
|
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 |
|
|
martyk
Joined: 06 Jun 2015 Posts: 3 Location: Australia
|
Posted: Sat Jun 06, 2015 2:03 pm Post subject: |
|
|
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 |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Sun Jun 07, 2015 7:53 pm Post subject: |
|
|
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 |
|
|
|