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 

Why so slowly?

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



Joined: 10 Oct 2008
Posts: 2

PostPosted: Fri Oct 10, 2008 6:04 pm    Post subject: Why so slowly? Reply with quote

A difference of 2 seconds

miniupnpc20060731 (or older)
execute "upnpc -l"
Elapsed Time : 00:00:02.110

miniupnpc20060711 (or over )
execute "upnpc -l"
Elapsed Time : 00:00:00.109

router D-Link DI-504 (for China)

If need more info or test environment, please mali me : yinzcn@gmail.com


------------------------
another:
"GetGenericPortMappingEntry() returned 402 (Invalid Args)"
using: miniupnpd-20081009.tar.gz


Code:
D:\Projects\UPnP\miniupnpc-1.2>upnpc-static -l
upnpc : miniupnpc library test client. (c) 2006-2008 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:1780/InternetGatewayDevice.xml
 st: urn:schemas-upnp-org:device:InternetGatewayDevice:1

Found valid IGD : http://192.168.0.1:1780/control?WANIPConnection
Local LAN ip address : 192.168.0.100
Connection Type : IP_Routed
Status : Connected, uptime=85482, LastConnectionError : ERROR_NONE
MaxBitRateDown : 100000000 bps   MaxBitRateUp 100000000 bps
ExternalIPAddress = 116.16.55.188
 0 TCP  8080->192.168.0.100:80    'libminiupnpc' ''
GetGenericPortMappingEntry() returned 402 (Invalid Args)

D:\Projects\UPnP\miniupnpc-1.2>
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1525

PostPosted: Fri Oct 10, 2008 6:21 pm    Post subject: Re: Why so slowly? Reply with quote

Yinz wrote:
A difference of 2 seconds

miniupnpc20060731 (or older)
execute "upnpc -l"
Elapsed Time : 00:00:02.110

miniupnpc20060711 (or over )
execute "upnpc -l"
Elapsed Time : 00:00:00.109

router D-Link DI-504 (for China)

Old versions of miniupnpc (before 2006/07/31) were stopping discovery process as soon as 1 UPnP device was discovered. That caused problems in case several were available on the network.
Since 2006/07/31, MiniUPnPc waits 2seconds in order to let a chance to all UPnP device to answer and then choose the right Internet Gateway Device. You can change this delay by changing the call to the upnpDiscover() function.
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1525

PostPosted: Fri Oct 10, 2008 6:27 pm    Post subject: Re: Why so slowly? Reply with quote

Yinz wrote:
"GetGenericPortMappingEntry() returned 402 (Invalid Args)"
using: miniupnpd-20081009.tar.gz

Code:
D:\Projects\UPnP\miniupnpc-1.2>upnpc-static -l
upnpc : miniupnpc library test client. (c) 2006-2008 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:1780/InternetGatewayDevice.xml
 st: urn:schemas-upnp-org:device:InternetGatewayDevice:1

Found valid IGD : http://192.168.0.1:1780/control?WANIPConnection
Local LAN ip address : 192.168.0.100
Connection Type : IP_Routed
Status : Connected, uptime=85482, LastConnectionError : ERROR_NONE
MaxBitRateDown : 100000000 bps   MaxBitRateUp 100000000 bps
ExternalIPAddress = 116.16.55.188
 0 TCP  8080->192.168.0.100:80    'libminiupnpc' ''
GetGenericPortMappingEntry() returned 402 (Invalid Args)

D:\Projects\UPnP\miniupnpc-1.2>

Here I get :
GetGenericPortMappingEntry() returned 713 (SpecifiedArrayIndexInvalid)
which is normal.
I dont know why you get this Invalid Args error. Could you capture the SOAP request and response using tools like wireshark ? (or tcpdump)
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Yinz



Joined: 10 Oct 2008
Posts: 2

PostPosted: Sat Oct 11, 2008 1:51 pm    Post subject: Reply with quote

Packets Stream Report:
http://phpnow.org/report.html

<NewPortMappingIndex>7</NewPortMappingIndex>
get Invalid Args here. Maybe maximum index is 6.


==================================================
Index : 21
Protocol : TCP
Local Address : 192.168.0.100
Remote Address : 192.168.0.1
Local Port : 2826
Remote Port : 1780
Local Host : yz-winxp
Remote Host :
Service Name :
Packets : 7
Data Size : 1,261 Bytes
Total Size : 2,228 Bytes
Capture Time : 2008-10-11 21:43:14:984
==================================================

POST /control?WANIPConnection HTTP/1.1
Host: 192.168.0.1:1780
User-Agent: POSIX, UPnP/1.0, miniUPnPc/1.0
Content-Length: 341
Content-Type: text/xml
SOAPAction: "urn:schemas-upnp-org:service:WANIPConnection:1#GetGenericPortMappingEntry"
Connection: Close
Cache-Control: no-cache
Pragma: no-cache

<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><m:GetGenericPortMappingEntry xmlns:m="urn:schemas-upnp-org:service:WANIPConnection:1"><NewPortMappingIndex>7</NewPortMappingIndex></m:GetGenericPortMappingEntry></s:Body></s:Envelope>

HTTP/1.1 500 Internal Server Error
Content-Length: 400
Content-Type: text/xml; charset="utf-8"
Date: Sat, 11 Oct 2008 21:43:23 GMT
EXT:
Server: os/ver 2.0 UPnP/1.0 router/(5+20).1.2.119
Connection: close

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>402</errorCode><errorDescription>Invalid Argument</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope>

==================================================
Index : 20
Protocol : TCP
Local Address : 192.168.0.100
Remote Address : 192.168.0.1
Local Port : 2825
Remote Port : 1780
Local Host : yz-winxp
Remote Host :
Service Name :
Packets : 7
Data Size : 1,492 Bytes
Total Size : 2,459 Bytes
Capture Time : 2008-10-11 21:43:14:984
==================================================

POST /control?WANIPConnection HTTP/1.1
Host: 192.168.0.1:1780
User-Agent: POSIX, UPnP/1.0, miniUPnPc/1.0
Content-Length: 341
Content-Type: text/xml
SOAPAction: "urn:schemas-upnp-org:service:WANIPConnection:1#GetGenericPortMappingEntry"
Connection: Close
Cache-Control: no-cache
Pragma: no-cache

<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><m:GetGenericPortMappingEntry xmlns:m="urn:schemas-upnp-org:service:WANIPConnection:1"><NewPortMappingIndex>6</NewPortMappingIndex></m:GetGenericPortMappingEntry></s:Body></s:Envelope>

HTTP/1.1 200 OK
Content-Length: 650
Content-Type: text/xml; charset="utf-8"
Date: Sat, 11 Oct 2008 21:43:23 GMT
EXT:
Server: os/ver 2.0 UPnP/1.0 router/(5+20).1.2.119
Connection: close

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetGenericPortMappingEntryResponse xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1">
<NewRemoteHost></NewRemoteHost>
<NewExternalPort>8000</NewExternalPort>
<NewProtocol>UDP</NewProtocol>
<NewInternalPort>8000</NewInternalPort>
<NewInternalClient>192.168.0.101</NewInternalClient>
<NewEnabled>1</NewEnabled>
<NewPortMappingDescription>[QQDownload] [UDP: 8000]</NewPortMappingDescription>
<NewLeaseDuration>0</NewLeaseDuration>
</u:GetGenericPortMappingEntryResponse>
</s:Body>
</s:Envelope>


==================================================
Index : 19
Protocol : TCP
Local Address : 192.168.0.100
Remote Address : 192.168.0.1
Local Port : 2824
Remote Port : 1780
Local Host : yz-winxp
Remote Host :
Service Name :
Packets : 7
Data Size : 1,495 Bytes
Total Size : 2,462 Bytes
Capture Time : 2008-10-11 21:43:14:968
==================================================

POST /control?WANIPConnection HTTP/1.1
Host: 192.168.0.1:1780
User-Agent: POSIX, UPnP/1.0, miniUPnPc/1.0
Content-Length: 341
Content-Type: text/xml
SOAPAction: "urn:schemas-upnp-org:service:WANIPConnection:1#GetGenericPortMappingEntry"
Connection: Close
Cache-Control: no-cache
Pragma: no-cache

<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><m:GetGenericPortMappingEntry xmlns:m="urn:schemas-upnp-org:service:WANIPConnection:1"><NewPortMappingIndex>5</NewPortMappingIndex></m:GetGenericPortMappingEntry></s:Body></s:Envelope>

HTTP/1.1 200 OK
Content-Length: 653
Content-Type: text/xml; charset="utf-8"
Date: Sat, 11 Oct 2008 21:43:23 GMT
EXT:
Server: os/ver 2.0 UPnP/1.0 router/(5+20).1.2.119
Connection: close

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetGenericPortMappingEntryResponse xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1">
<NewRemoteHost></NewRemoteHost>
<NewExternalPort>29909</NewExternalPort>
<NewProtocol>UDP</NewProtocol>
<NewInternalPort>29909</NewInternalPort>
<NewInternalClient>192.168.0.101</NewInternalClient>
<NewEnabled>1</NewEnabled>
<NewPortMappingDescription>[QQDownload] [UDP: 29909]</NewPortMappingDescription>
<NewLeaseDuration>0</NewLeaseDuration>
</u:GetGenericPortMappingEntryResponse>
</s:Body>
</s:Envelope>


==================================================
Index : 18
Protocol : TCP
Local Address : 192.168.0.100
Remote Address : 192.168.0.1
Local Port : 2823
Remote Port : 1780
Local Host : yz-winxp
Remote Host :
Service Name :
Packets : 7
Data Size : 1,489 Bytes
Total Size : 2,456 Bytes
Capture Time : 2008-10-11 21:43:14:968
==================================================

POST /control?WANIPConnection HTTP/1.1
Host: 192.168.0.1:1780
User-Agent: POSIX, UPnP/1.0, miniUPnPc/1.0
Content-Length: 341
Content-Type: text/xml
SOAPAction: "urn:schemas-upnp-org:service:WANIPConnection:1#GetGenericPortMappingEntry"
Connection: Close
Cache-Control: no-cache
Pragma: no-cache

<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><m:GetGenericPortMappingEntry xmlns:m="urn:schemas-upnp-org:service:WANIPConnection:1"><NewPortMappingIndex>4</NewPortMappingIndex></m:GetGenericPortMappingEntry></s:Body></s:Envelope>

HTTP/1.1 200 OK
Content-Length: 647
Content-Type: text/xml; charset="utf-8"
Date: Sat, 11 Oct 2008 21:43:23 GMT
EXT:
Server: os/ver 2.0 UPnP/1.0 router/(5+20).1.2.119
Connection: close

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetGenericPortMappingEntryResponse xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1">
<NewRemoteHost></NewRemoteHost>
<NewExternalPort>443</NewExternalPort>
<NewProtocol>TCP</NewProtocol>
<NewInternalPort>443</NewInternalPort>
<NewInternalClient>192.168.0.101</NewInternalClient>
<NewEnabled>1</NewEnabled>
<NewPortMappingDescription>[QQDownload] [TCP: 443]</NewPortMappingDescription>
<NewLeaseDuration>0</NewLeaseDuration>
</u:GetGenericPortMappingEntryResponse>
</s:Body>
</s:Envelope>


==================================================
Index : 17
Protocol : TCP
Local Address : 192.168.0.100
Remote Address : 192.168.0.1
Local Port : 2822
Remote Port : 1780
Local Host : yz-winxp
Remote Host :
Service Name :
Packets : 7
Data Size : 1,492 Bytes
Total Size : 2,459 Bytes
Capture Time : 2008-10-11 21:43:14:968
==================================================

POST /control?WANIPConnection HTTP/1.1
Host: 192.168.0.1:1780
User-Agent: POSIX, UPnP/1.0, miniUPnPc/1.0
Content-Length: 341
Content-Type: text/xml
SOAPAction: "urn:schemas-upnp-org:service:WANIPConnection:1#GetGenericPortMappingEntry"
Connection: Close
Cache-Control: no-cache
Pragma: no-cache

<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><m:GetGenericPortMappingEntry xmlns:m="urn:schemas-upnp-org:service:WANIPConnection:1"><NewPortMappingIndex>3</NewPortMappingIndex></m:GetGenericPortMappingEntry></s:Body></s:Envelope>

HTTP/1.1 200 OK
Content-Length: 650
Content-Type: text/xml; charset="utf-8"
Date: Sat, 11 Oct 2008 21:43:23 GMT
EXT:
Server: os/ver 2.0 UPnP/1.0 router/(5+20).1.2.119
Connection: close

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetGenericPortMappingEntryResponse xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1">
<NewRemoteHost></NewRemoteHost>
<NewExternalPort>4663</NewExternalPort>
<NewProtocol>UDP</NewProtocol>
<NewInternalPort>4663</NewInternalPort>
<NewInternalClient>192.168.0.101</NewInternalClient>
<NewEnabled>1</NewEnabled>
<NewPortMappingDescription>[QQDownload] [UDP: 4663]</NewPortMappingDescription>
<NewLeaseDuration>0</NewLeaseDuration>
</u:GetGenericPortMappingEntryResponse>
</s:Body>
</s:Envelope>


==================================================
Index : 16
Protocol : TCP
Local Address : 192.168.0.100
Remote Address : 192.168.0.1
Local Port : 2821
Remote Port : 1780
Local Host : yz-winxp
Remote Host :
Service Name :
Packets : 7
Data Size : 1,492 Bytes
Total Size : 2,459 Bytes
Capture Time : 2008-10-11 21:43:14:953
==================================================

POST /control?WANIPConnection HTTP/1.1
Host: 192.168.0.1:1780
User-Agent: POSIX, UPnP/1.0, miniUPnPc/1.0
Content-Length: 341
Content-Type: text/xml
SOAPAction: "urn:schemas-upnp-org:service:WANIPConnection:1#GetGenericPortMappingEntry"
Connection: Close
Cache-Control: no-cache
Pragma: no-cache

<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><m:GetGenericPortMappingEntry xmlns:m="urn:schemas-upnp-org:service:WANIPConnection:1"><NewPortMappingIndex>2</NewPortMappingIndex></m:GetGenericPortMappingEntry></s:Body></s:Envelope>

HTTP/1.1 200 OK
Content-Length: 650
Content-Type: text/xml; charset="utf-8"
Date: Sat, 11 Oct 2008 21:43:23 GMT
EXT:
Server: os/ver 2.0 UPnP/1.0 router/(5+20).1.2.119
Connection: close

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetGenericPortMappingEntryResponse xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1">
<NewRemoteHost></NewRemoteHost>
<NewExternalPort>4662</NewExternalPort>
<NewProtocol>TCP</NewProtocol>
<NewInternalPort>4662</NewInternalPort>
<NewInternalClient>192.168.0.101</NewInternalClient>
<NewEnabled>1</NewEnabled>
<NewPortMappingDescription>[QQDownload] [TCP: 4662]</NewPortMappingDescription>
<NewLeaseDuration>0</NewLeaseDuration>
</u:GetGenericPortMappingEntryResponse>
</s:Body>
</s:Envelope>


==================================================
Index : 15
Protocol : TCP
Local Address : 192.168.0.100
Remote Address : 192.168.0.1
Local Port : 2820
Remote Port : 1780
Local Host : yz-winxp
Remote Host :
Service Name :
Packets : 7
Data Size : 1,486 Bytes
Total Size : 2,453 Bytes
Capture Time : 2008-10-11 21:43:14:953
==================================================

POST /control?WANIPConnection HTTP/1.1
Host: 192.168.0.1:1780
User-Agent: POSIX, UPnP/1.0, miniUPnPc/1.0
Content-Length: 341
Content-Type: text/xml
SOAPAction: "urn:schemas-upnp-org:service:WANIPConnection:1#GetGenericPortMappingEntry"
Connection: Close
Cache-Control: no-cache
Pragma: no-cache

<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><m:GetGenericPortMappingEntry xmlns:m="urn:schemas-upnp-org:service:WANIPConnection:1"><NewPortMappingIndex>1</NewPortMappingIndex></m:GetGenericPortMappingEntry></s:Body></s:Envelope>

HTTP/1.1 200 OK
Content-Length: 644
Content-Type: text/xml; charset="utf-8"
Date: Sat, 11 Oct 2008 21:43:23 GMT
EXT:
Server: os/ver 2.0 UPnP/1.0 router/(5+20).1.2.119
Connection: close

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetGenericPortMappingEntryResponse xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1">
<NewRemoteHost></NewRemoteHost>
<NewExternalPort>80</NewExternalPort>
<NewProtocol>TCP</NewProtocol>
<NewInternalPort>80</NewInternalPort>
<NewInternalClient>192.168.0.101</NewInternalClient>
<NewEnabled>1</NewEnabled>
<NewPortMappingDescription>[QQDownload] [TCP: 80]</NewPortMappingDescription>
<NewLeaseDuration>0</NewLeaseDuration>
</u:GetGenericPortMappingEntryResponse>
</s:Body>
</s:Envelope>


==================================================
Index : 14
Protocol : TCP
Local Address : 192.168.0.100
Remote Address : 192.168.0.1
Local Port : 2819
Remote Port : 1780
Local Host : yz-winxp
Remote Host :
Service Name :
Packets : 7
Data Size : 1,478 Bytes
Total Size : 2,445 Bytes
Capture Time : 2008-10-11 21:43:14:953
==================================================

POST /control?WANIPConnection HTTP/1.1
Host: 192.168.0.1:1780
User-Agent: POSIX, UPnP/1.0, miniUPnPc/1.0
Content-Length: 341
Content-Type: text/xml
SOAPAction: "urn:schemas-upnp-org:service:WANIPConnection:1#GetGenericPortMappingEntry"
Connection: Close
Cache-Control: no-cache
Pragma: no-cache

<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><m:GetGenericPortMappingEntry xmlns:m="urn:schemas-upnp-org:service:WANIPConnection:1"><NewPortMappingIndex>0</NewPortMappingIndex></m:GetGenericPortMappingEntry></s:Body></s:Envelope>

HTTP/1.1 200 OK
Content-Length: 636
Content-Type: text/xml; charset="utf-8"
Date: Sat, 11 Oct 2008 21:43:23 GMT
EXT:
Server: os/ver 2.0 UPnP/1.0 router/(5+20).1.2.119
Connection: close

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetGenericPortMappingEntryResponse xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1">
<NewRemoteHost></NewRemoteHost>
<NewExternalPort>8080</NewExternalPort>
<NewProtocol>TCP</NewProtocol>
<NewInternalPort>80</NewInternalPort>
<NewInternalClient>192.168.0.100</NewInternalClient>
<NewEnabled>1</NewEnabled>
<NewPortMappingDescription>libminiupnpc</NewPortMappingDescription>
<NewLeaseDuration>0</NewLeaseDuration>
</u:GetGenericPortMappingEntryResponse>
</s:Body>
</s:Envelope>


==================================================
Index : 13
Protocol : TCP
Local Address : 192.168.0.100
Remote Address : 192.168.0.1
Local Port : 2818
Remote Port : 1780
Local Host : yz-winxp
Remote Host :
Service Name :
Packets : 7
Data Size : 1,128 Bytes
Total Size : 2,033 Bytes
Capture Time : 2008-10-11 21:43:14:953
==================================================

POST /control?WANIPConnection HTTP/1.1
Host: 192.168.0.1:1780
User-Agent: POSIX, UPnP/1.0, miniUPnPc/1.0
Content-Length: 285
Content-Type: text/xml
SOAPAction: "urn:schemas-upnp-org:service:WANIPConnection:1#GetExternalIPAddress"
Connection: Close
Cache-Control: no-cache
Pragma: no-cache

<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><m:GetExternalIPAddress xmlns:m="urn:schemas-upnp-org:service:WANIPConnection:1"></m:GetExternalIPAddress></s:Body></s:Envelope>

HTTP/1.1 200 OK
Content-Length: 348
Content-Type: text/xml; charset="utf-8"
Date: Sat, 11 Oct 2008 21:43:23 GMT
EXT:
Server: os/ver 2.0 UPnP/1.0 router/(5+20).1.2.119
Connection: close

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetExternalIPAddressResponse xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1">
<NewExternalIPAddress>116.16.55.188</NewExternalIPAddress>
</u:GetExternalIPAddressResponse>
</s:Body>
</s:Envelope>


==================================================
Index : 12
Protocol : TCP
Local Address : 192.168.0.100
Remote Address : 192.168.0.1
Local Port : 2817
Remote Port : 1780
Local Host : yz-winxp
Remote Host :
Service Name :
Packets : 7
Data Size : 1,361 Bytes
Total Size : 2,302 Bytes
Capture Time : 2008-10-11 21:43:14:937
==================================================

POST /control?WANCommonInterfaceConfig HTTP/1.1
Host: 192.168.0.1:1780
User-Agent: POSIX, UPnP/1.0, miniUPnPc/1.0
Content-Length: 300
Content-Type: text/xml
SOAPAction: "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1#GetCommonLinkProperties"
Connection: Close
Cache-Control: no-cache
Pragma: no-cache

<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><m:GetCommonLinkProperties xmlns:m="urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1"></m:GetCommonLinkProperties></s:Body></s:Envelope>

HTTP/1.1 200 OK
Content-Length: 545
Content-Type: text/xml; charset="utf-8"
Date: Sat, 11 Oct 2008 21:43:23 GMT
EXT:
Server: os/ver 2.0 UPnP/1.0 router/(5+20).1.2.119
Connection: close

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetCommonLinkPropertiesResponse xmlns:u="urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1">
<NewWANAccessType>Ethernet</NewWANAccessType>
<NewLayer1UpstreamMaxBitRate>100000000</NewLayer1UpstreamMaxBitRate>
<NewLayer1DownstreamMaxBitRate>100000000</NewLayer1DownstreamMaxBitRate>
<NewPhysicalLinkStatus>Up</NewPhysicalLinkStatus>
</u:GetCommonLinkPropertiesResponse>
</s:Body>
</s:Envelope>


==================================================
Index : 11
Protocol : TCP
Local Address : 192.168.0.100
Remote Address : 192.168.0.1
Local Port : 2816
Remote Port : 1780
Local Host : yz-winxp
Remote Host :
Service Name :
Packets : 7
Data Size : 1,179 Bytes
Total Size : 2,063 Bytes
Capture Time : 2008-10-11 21:43:14:937
==================================================

POST /control?WANIPConnection HTTP/1.1
Host: 192.168.0.1:1780
User-Agent: POSIX, UPnP/1.0, miniUPnPc/1.0
Content-Length: 271
Content-Type: text/xml
SOAPAction: "urn:schemas-upnp-org:service:WANIPConnection:1#GetStatusInfo"
Connection: Close
Cache-Control: no-cache
Pragma: no-cache

<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><m:GetStatusInfo xmlns:m="urn:schemas-upnp-org:service:WANIPConnection:1"></m:GetStatusInfo></s:Body></s:Envelope>

HTTP/1.1 200 OK
Content-Length: 420
Content-Type: text/xml; charset="utf-8"
Date: Sat, 11 Oct 2008 21:43:23 GMT
EXT:
Server: os/ver 2.0 UPnP/1.0 router/(5+20).1.2.119
Connection: close

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetStatusInfoResponse xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1">
<NewConnectionStatus>Connected</NewConnectionStatus>
<NewLastConnectionError>ERROR_NONE</NewLastConnectionError>
<NewUptime>156033</NewUptime>
</u:GetStatusInfoResponse>
</s:Body>
</s:Envelope>


==================================================
Index : 10
Protocol : TCP
Local Address : 192.168.0.100
Remote Address : 192.168.0.1
Local Port : 2815
Remote Port : 1780
Local Host : yz-winxp
Remote Host :
Service Name :
Packets : 7
Data Size : 1,191 Bytes
Total Size : 2,099 Bytes
Capture Time : 2008-10-11 21:43:14:937
==================================================

POST /control?WANIPConnection HTTP/1.1
Host: 192.168.0.1:1780
User-Agent: POSIX, UPnP/1.0, miniUPnPc/1.0
Content-Length: 287
Content-Type: text/xml
SOAPAction: "urn:schemas-upnp-org:service:WANIPConnection:1#GetConnectionTypeInfo"
Connection: Close
Cache-Control: no-cache
Pragma: no-cache

<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><m:GetConnectionTypeInfo xmlns:m="urn:schemas-upnp-org:service:WANIPConnection:1"></m:GetConnectionTypeInfo></s:Body></s:Envelope>

HTTP/1.1 200 OK
Content-Length: 408
Content-Type: text/xml; charset="utf-8"
Date: Sat, 11 Oct 2008 21:43:23 GMT
EXT:
Server: os/ver 2.0 UPnP/1.0 router/(5+20).1.2.119
Connection: close

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetConnectionTypeInfoResponse xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1">
<NewConnectionType>IP_Routed</NewConnectionType>
<NewPossibleConnectionTypes>IP_Routed</NewPossibleConnectionTypes>
</u:GetConnectionTypeInfoResponse>
</s:Body>
</s:Envelope>


==================================================
Index : 9
Protocol : TCP
Local Address : 192.168.0.100
Remote Address : 192.168.0.1
Local Port : 2814
Remote Port : 1780
Local Host : yz-winxp
Remote Host :
Service Name :
Packets : 7
Data Size : 1,179 Bytes
Total Size : 2,063 Bytes
Capture Time : 2008-10-11 21:43:14:921
==================================================

POST /control?WANIPConnection HTTP/1.1
Host: 192.168.0.1:1780
User-Agent: POSIX, UPnP/1.0, miniUPnPc/1.0
Content-Length: 271
Content-Type: text/xml
SOAPAction: "urn:schemas-upnp-org:service:WANIPConnection:1#GetStatusInfo"
Connection: Close
Cache-Control: no-cache
Pragma: no-cache

<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><m:GetStatusInfo xmlns:m="urn:schemas-upnp-org:service:WANIPConnection:1"></m:GetStatusInfo></s:Body></s:Envelope>

HTTP/1.1 200 OK
Content-Length: 420
Content-Type: text/xml; charset="utf-8"
Date: Sat, 11 Oct 2008 21:43:23 GMT
EXT:
Server: os/ver 2.0 UPnP/1.0 router/(5+20).1.2.119
Connection: close

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetStatusInfoResponse xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1">
<NewConnectionStatus>Connected</NewConnectionStatus>
<NewLastConnectionError>ERROR_NONE</NewLastConnectionError>
<NewUptime>156033</NewUptime>
</u:GetStatusInfoResponse>
</s:Body>
</s:Envelope>


==================================================
Index : 8
Protocol : TCP
Local Address : 192.168.0.100
Remote Address : 192.168.0.1
Local Port : 2813
Remote Port : 1780
Local Host : yz-winxp
Remote Host :
Service Name :
Packets : 13
Data Size : 3,966 Bytes
Total Size : 4,612 Bytes
Capture Time : 2008-10-11 21:43:14:921
==================================================

GET /InternetGatewayDevice.xml HTTP/1.1
Host: 192.168.0.1:1780
Connection: Close


HTTP/1.1 200 OK
Content-Type: text/xml
Content-Length: 3778
Connection: close
Pragma: no-cache

<?xml version="1.0"?>
<root xmlns="urn:schemas-upnp-org:device-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<URLBase></URLBase>
<device>
<deviceType>urn:schemas-upnp-org:device:InternetGatewayDevice:1</deviceType>
<friendlyName>DI-504</friendlyName>
<manufacturer>D-Link Sytems, Inc.</manufacturer>
<manufacturerURL>http://www.dlink.com</manufacturerURL>
<modelDescription>Internet Access Router</modelDescription>
<modelName>DI-504</modelName>
<modelURL>http://www.dlink.com</modelURL>
<UDN>uuid:7fff6211-b0fa-4075-a15c-0b624d01bfb4</UDN>
<serviceList>
<service>
<serviceType>urn:schemas-upnp-org:service:Layer3Forwarding:1</serviceType>
<serviceId>urn:upnp-org:serviceId:L3Forwarding1</serviceId>
<SCPDURL>/x_layer3forwarding.xml</SCPDURL>
<controlURL>/control?Layer3Forwarding</controlURL>
<eventSubURL>/event?Layer3Forwarding</eventSubURL>
</service>
</serviceList>
<deviceList>
<device>
<deviceType>urn:schemas-upnp-org:device:WANDevice:1</deviceType>
<friendlyName>WANDevice</friendlyName>
<manufacturer>D-Link Sytems, Inc.</manufacturer>
<manufacturerURL>http://www.dlink.com</manufacturerURL>
<modelDescription>Internet Access Router</modelDescription>
<modelName>DI-504</modelName>
<modelURL>http://www.dlink.com</modelURL>
<UDN>uuid:692db16a-3120-429a-b565-caac16c76e86</UDN>
<serviceList>
<service>
<serviceType>urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1</serviceType>
<serviceId>urn:upnp-org:serviceId:WANCommonIFC1</serviceId>
<SCPDURL>/x_wancommoninterfaceconfig.xml</SCPDURL>
<controlURL>/control?WANCommonInterfaceConfig</controlURL>
<eventSubURL>/event?WANCommonInterfaceConfig</eventSubURL>
</service>
</serviceList>
<deviceList>
<device>
<deviceType>urn:schemas-upnp-org:device:WANConnectionDevice:1</deviceType>
<friendlyName>WAN Connection Device</friendlyName>
<manufacturer>D-Link Sytems, Inc.</manufacturer>
<manufacturerURL>http://www.dlink.com</manufacturerURL>
<modelDescription>Internet Access Router</modelDescription>
<modelName>DI-504</modelName>
<modelURL>http://www.dlink.com</modelURL>
<UDN>uuid:17079cb3-4e6b-4c94-80c5-02f7ae10d9f8</UDN>
<serviceList>
<service>
<serviceType>urn:schemas-upnp-org:service:WANIPConnection:1</serviceType>
<serviceId>urn:upnp-org:serviceId:WANIPConn1</serviceId>
<SCPDURL>/x_wanipconnection.xml</SCPDURL>
<controlURL>/control?WANIPConnection</controlURL>
<eventSubURL>/event?WANIPConnection</eventSubURL>
</service>
</serviceList>
</device>
</deviceList>
</device>
<device>
<deviceType>urn:schemas-upnp-org:device:LANDevice:1</deviceType>
<friendlyName>LANDevice</friendlyName>
<manufacturer>D-Link Sytems, Inc.</manufacturer>
<manufacturerURL>http://www.dlink.com</manufacturerURL>
<modelDescription>Internet Access Router</modelDescription>
<modelName>DI-504</modelName>
<modelURL>http://www.dlink.com</modelURL>
<UDN>uuid:774a7c25-ac61-424e-8968-e42c32ad6c71</UDN>
<serviceList>
<service>
<serviceType>urn:schemas-upnp-org:service:LANHostConfigManagement:1</serviceType>
<serviceId>urn:upnp-org:serviceId:LANHostCfg1</serviceId>
<SCPDURL>/x_lanhostconfigmanagement.xml</SCPDURL>
<controlURL>/control?LANHostConfigManagement</controlURL>
<eventSubURL>/event?LANHostConfigManagement</eventSubURL>
</service>
</serviceList>
</device>
</deviceList>
<presentationURL>http://192.168.0.1</presentationURL>
</device>
</root>
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1525

PostPosted: Sat Oct 11, 2008 3:55 pm    Post subject: Reply with quote

That is only a minor bug of the Router that should answer error 713 instead of 402 in this case !
_________________
Main miniUPnP author.
http://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.