Jump to content

UPnP in 1.6 not working for you? Post here


Firon

Recommended Posts

  • Replies 299
  • Created
  • Last Reply

A possible clue for the developers. I am one of the many who have been having trouble in UPnP as of version 1.6. At first, the light would not turn green at all, the logging reporting that it could not map the port. After I cleaned out the %APPDATA%\utorrent subdirectory, port mapping started working and the light would turn green. But . . . it would then revert to yellow in 20 minutes or so, even though the logger would report that the port was mapped. Out of curiousity, I went to the Preferences, Connection tab and pressed the button to (re)randomize the port. This yields a message saying that the old port is being removed, then a message that the new port is being mapped ---and the light goes back to green. The port change seems to take about 3 or 4 seconds and doesn't seem to affect either the current connections or downloads. So, would a kludge fix be to have, when randomized port is selected, the port re-randomize at intervals? This doesn't seem to me to be such a bad idea on other grounds anyway.

Link to comment
Share on other sites

'Enable UPnP port mapping' checkbox is for ludde's UPnP code.

What tjobo meant was that there should be a option to switch between ludde's UPnP code and

windows xp's UPnP code incase if ludde's UPnP code doesn't work on your router.

Link to comment
Share on other sites

It isn't...? I see a checkbox for UPnP. Or is he talking about something else?

what he means is that there should be an option with which UPnP method to use, ludde's or Windows XPs.

I myself am having problems with UPnP since 1.6 474.

[16:03:24] UPnP: Discovered new device: http://192.168.0.1:80/UD/?4

[16:03:24] UPnP: Mapped port 48158 -> 192.168.0.3:48158

i dunno how you guys get all the other information.

it may say it's mapped but when i check my router, no ports are forwarded by UPnP.

Windows XP SP2

DSL-500 Gen II (Nice and old but reliable.)

All other UPnP functions with anything else works fine, this is the first UPnP problem i've come across, any suggestions?

Link to comment
Share on other sites

I think Firon should rethink that decision because unless ludde buys all those router who doesn't give an xml link in their error message so that he personally can test them, he will have a hard time making so that the UPnP code works for all routers.

Link to comment
Share on other sites

I too have run into errors upon upgrading to uTorrent 1.6. Here is what I have dug up for this thread in the hopes that 1.6 build 475 or whatever is next will work properly for me.

Router: D-Link DGL-4300

Firmware revision: 1.6 (the newest)

Here is what the Logger says for me on my primary workstation, which is running Windows XP Pro SP2 with all available updates as of 07/11/2006 (Patch Tuesday, yay!), upon running uTorrent 1.5 build 436 and loading a torrent.

[18:21:40] Mapped port with UPnP to 192.168.0.3:64441 (external port 64441)

And here is what it says on my virtual installation of Windows XP Pro SP2, also fully patched up, upon running uTorrent 1.6 build 474:

[18:08:32] Unable to map UPnP Port.

Under 1.5, when I go to Options > Speed Guide and click "Test if port is forwarded properly", the resulting page says the port is forwarded properly and the status indicator light down at the bottom is green. Under 1.6, when I do the same thing, it says it is not forwarded properly.

So at any rate, I hope this helps. I would post the XML file that has been mentioned, but I am not seeing it anywhere in the logger under both uTorrent installations, so unless someone tells me how to go about finding it, I cannot post it. And rest assured that I have not done something stupid like forgotten to enable UPnP, heh. I am using DC++ 0.691, which is configured to use UPnP, right now.

Link to comment
Share on other sites

Used to work in uTorrent 1.5 release (464?), doesn't work in 1.6 (build 474); in my case it's error code 401. Also, can't see the detailed logs other do. ... So I ran Ethereal instead :P

uTorrent:

<!-- request -->
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:AddPortMapping xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1">
<NewRemoteHost></NewRemoteHost>
<NewExternalPort>10993</NewExternalPort>
<NewProtocol>TCP</NewProtocol>
<NewInternalPort>10993</NewInternalPort>
<NewInternalClient>192.168.70.85</NewInternalClient>
<NewEnabled>1</NewEnabled>
<NewPortMappingDescription>utorrent</NewPortMappingDescription>
<NewLeaseDuration>0</NewLeaseDuration>
</u:AddPortMapping>
</s:Body>
</s:Envelope>

<!-- response -->
<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>401</errorCode>
<errorDescription>Invalid Action Name</errorDescription>
</UPnPError>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>

The router's XML file: (/igd.xml)

<root xmlns="urn:schemas-upnp-org:device-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<URLBase>http://192.168.70.1</URLBase>
<device>
<deviceType>urn:schemas-upnp-org:device:InternetGatewayDevice:1</deviceType>
<friendlyName>SMC 7004VBR Router</friendlyName>
<manufacturer>SMC Inc.</manufacturer>
<manufacturerURL>http://www.smc.com/</manufacturerURL>
<modelDescription>Internet Gateway Device with UPnP support</modelDescription>
<modelName></modelName>
<modelNumber>v1.20A</modelNumber>
<modelURL>http://www.smc.com/</modelURL>
<serialNumber>C230000000</serialNumber>
<UDN>uuid:00000000-0000-0001-0000-0004e249206c</UDN>
<UPC>494125000000</UPC>
<iconList>
<icon>
<mimetype>image/gif</mimetype>
<width>16</width>
<height>16</height>
<depth>8</depth>
<url>/root16.gif</url>
</icon>
<icon>
<mimetype>image/gif</mimetype>
<width>32</width>
<height>32</height>
<depth>8</depth>
<url>/root32.gif</url>
</icon>
<icon>
<mimetype>image/gif</mimetype>
<width>48</width>
<height>48</height>
<depth>8</depth>
<url>/root48.gif</url>
</icon>
</iconList>
<serviceList>
<service>
<serviceType>urn:schemas-microsoft-com:service:OSInfo:1</serviceType>
<serviceId>urn:microsoft-com:serviceId:OSInfo1</serviceId>
<SCPDURL>/igd_osf.xml</SCPDURL>
<controlURL>http://192.168.70.1:5440/upnp/control?OSInfo1</controlURL>
<eventSubURL>http://192.168.70.1:5440/upnp/event?OSInfo1</eventSubURL>
</service>
<service>
<serviceType>urn:schemas-upnp-org:service:Layer3Forwarding:1</serviceType>
<serviceId>urn:upnp-org:serviceId:L3Forwarding1</serviceId>
<SCPDURL>/igd_l3f.xml</SCPDURL>
<controlURL>http://192.168.70.1:5440/upnp/control?Layer3Forwarding</controlURL>
<eventSubURL>http://192.168.70.1:5440/upnp/event?Layer3Forwarding</eventSubURL>
</service>
</serviceList>
<deviceList>
<device>
<deviceType>urn:schemas-upnp-org:device:WANDevice:1</deviceType>
<friendlyName>SMC 7004VBR Router(WAN)</friendlyName>
<manufacturer>SMC Inc.</manufacturer>
<manufacturerURL>http://www.smc.com/</manufacturerURL>
<modelDescription>Internet Gateway Device with UPnP support (WAN Interface Device)</modelDescription>
<modelName> WAN Interface</modelName>
<modelNumber>v1.20A</modelNumber>
<modelURL>http://www.smc.com/</modelURL>
<serialNumber>C230000000</serialNumber>
<UDN>uuid:00000000-0000-0001-0001-0004e249206c</UDN>
<UPC>494125000000</UPC>
<serviceList>
<service>
<serviceType>urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1</serviceType>
<serviceId>urn:upnp-org:serviceId:WANCommonIFC1</serviceId>
<SCPDURL>/igd_wcic.xml</SCPDURL>
<controlURL>http://192.168.70.1:5440/upnp/control?WANCommonInterfaceConfig</controlURL>
<eventSubURL>http://192.168.70.1:5440/upnp/event?WANCommonInterfaceConfig</eventSubURL>
</service>
</serviceList>
<deviceList>
<device>
<deviceType>urn:schemas-upnp-org:device:WANConnectionDevice:1</deviceType>
<friendlyName>SMC 7004VBR Router(WAN Con)</friendlyName>
<manufacturer>SMC Inc.</manufacturer>
<manufacturerURL>http://www.smc.com/</manufacturerURL>
<modelDescription>Internet Gateway Device with UPnP support (WAN Connection Device)</modelDescription>
<modelName> WAN Connector</modelName>
<modelNumber>v1.20A</modelNumber>
<modelURL>http://www.smc.com/</modelURL>
<serialNumber>C230004105</serialNumber>
<UDN>uuid:00000000-0000-0001-0002-0004e249206c</UDN>
<UPC>494125014380</UPC>
<serviceList>
<service>
<serviceType>urn:schemas-upnp-org:service:WANEthernetLinkConfig:1</serviceType>
<serviceId>urn:upnp-org:serviceId:WANEthLinkC1</serviceId>
<SCPDURL>/igd_wec.xml</SCPDURL>
<controlURL>http://192.168.70.1:5440/upnp/control?WANEthernetLinkConfig</controlURL>
<eventSubURL>http://192.168.70.1:5440/upnp/event?WANEthernetLinkConfig</eventSubURL>
</service>
<service>
<serviceType>urn:schemas-upnp-org:service:WANPPPConnection:1</serviceType>
<serviceId>urn:upnp-org:serviceId:WANPPPConn1</serviceId>
<SCPDURL>/igd_wpc.xml</SCPDURL>
<controlURL>http://192.168.70.1:5440/upnp/control?WANPPPConnection</controlURL>
<eventSubURL>http://192.168.70.1:5440/upnp/event?WANPPPConnection</eventSubURL>
</service>
<service>
<serviceType>urn:schemas-upnp-org:service:WANIPConnection:1</serviceType>
<serviceId>urn:upnp-org:serviceId:WANIPConn1</serviceId>
<SCPDURL>/igd_wic.xml</SCPDURL>
<controlURL>http://192.168.70.1:5440/upnp/control?WANIPConnection</controlURL>
<eventSubURL>http://192.168.70.1:5440/upnp/control?WANIPConnection</eventSubURL>
</service>
</serviceList>
<presentationURL>/igd_wc.html</presentationURL>
</device>
</deviceList>
<presentationURL>/igd_w.html</presentationURL>
</device>
</deviceList>
<presentationURL>/</presentationURL>
</device>
</root>

And the XML for the WANIP device (/igd_wic.xml):

<?xml version="1.0"?>
<scpd xmlns="urn:schemas-upnp-org:service-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>

<actionList>
<action>
<name>SetConnectionType</name>
<argumentList>

<argument>
<name>NewConnectionType</name>
<relatedStateVariable>ConnectionType</relatedStateVariable>
<direction>in</direction>
</argument>
</argumentList>
</action>

<action>

<name>GetConnectionTypeInfo</name>
<argumentList>
<argument>
<name>NewConnectionType</name>
<relatedStateVariable>ConnectionType</relatedStateVariable>
<direction>out</direction>
</argument>


<argument>
<name>NewPossibleConnectionTypes</name>
<relatedStateVariable>PossibleConnectionTypes</relatedStateVariable>
<direction>out</direction>
</argument>
</argumentList>
</action>

<action>
<name>RequestConnection</name>
</action>

<action>
<name>ForceTermination</name>
</action>

<action>
<name>GetStatusInfo</name>
<argumentList>

<argument>
<name>NewConnectionStatus</name>
<relatedStateVariable>ConnectionStatus</relatedStateVariable>
<direction>out</direction>
</argument>

<argument>
<name>NewLastConnectionError</name>

<relatedStateVariable>LastConnectionError</relatedStateVariable>
<direction>out</direction>
</argument>

<argument>
<name>NewUptime</name>
<relatedStateVariable>Uptime</relatedStateVariable>
<direction>out</direction>

</argument>
</argumentList>
</action>

<action>
<name>GetNATRSIPStatus</name>
<argumentList>
<argument>
<name>NewRSIPAvailable</name>

<relatedStateVariable>RSIPAvailable</relatedStateVariable>
<direction>out</direction>
</argument>

<argument>
<name>NewNATEnabled</name>
<relatedStateVariable>NATEnabled</relatedStateVariable>
<direction>out</direction>

</argument>
</argumentList>
</action>

<action>
<name>GetGenericPortMappingEntry</name>
<argumentList>
<argument>
<name>NewPortMappingIndex</name>

<relatedStateVariable>PortMappingNumberOfEntries</relatedStateVariable>
<direction>in</direction>
</argument>

<argument>
<name>NewRemoteHost</name>
<relatedStateVariable>RemoteHost</relatedStateVariable>
<direction>out</direction>

</argument>

<argument>
<name>NewExternalPort</name>
<relatedStateVariable>ExternalPort</relatedStateVariable>
<direction>out</direction>
</argument>

<argument>

<name>NewProtocol</name>
<relatedStateVariable>PortMappingProtocol</relatedStateVariable>
<direction>out</direction>
</argument>

<argument>
<name>NewInternalPort</name>
<relatedStateVariable>InternalPort</relatedStateVariable>

<direction>out</direction>
</argument>

<argument>
<name>NewInternalClient</name>
<relatedStateVariable>InternalClient</relatedStateVariable>
<direction>out</direction>
</argument>


<argument>
<name>NewEnabled</name>
<relatedStateVariable>PortMappingEnabled</relatedStateVariable>
<direction>out</direction>
</argument>

<argument>
<name>NewPortMappingDescription</name>

<relatedStateVariable>PortMappingDescription</relatedStateVariable>
<direction>out</direction>
</argument>

<argument>
<name>NewLeaseDuration</name>
<relatedStateVariable>PortMappingLeaseDuration</relatedStateVariable>
<direction>out</direction>

</argument>
</argumentList>
</action>

<action>
<name>GetSpecificPortMappingEntry </name>
<argumentList>
<argument>
<name>NewRemoteHost</name>

<relatedStateVariable>RemoteHost</relatedStateVariable>
<direction>in</direction>
</argument>

<argument>
<name>NewExternalPort</name>
<relatedStateVariable>ExternalPort</relatedStateVariable>
<direction>in</direction>

</argument>

<argument>
<name>NewProtocol</name>
<relatedStateVariable>PortMappingProtocol</relatedStateVariable>
<direction>in</direction>
</argument>

<argument>

<name>NewInternalPort</name>
<relatedStateVariable>InternalPort</relatedStateVariable>
<direction>out</direction>
</argument>

<argument>
<name>NewInternalClient</name>
<relatedStateVariable>InternalClient</relatedStateVariable>

<direction>out</direction>
</argument>

<argument>
<name>NewEnabled</name>
<relatedStateVariable>PortMappingEnabled</relatedStateVariable>
<direction>out</direction>
</argument>


<argument>
<name>NewPortMappingDescription</name>
<relatedStateVariable>PortMappingDescription</relatedStateVariable>
<direction>out</direction>
</argument>

<argument>
<name>NewLeaseDuration</name>

<relatedStateVariable>PortMappingLeaseDuration</relatedStateVariable>
<direction>out</direction>
</argument>
</argumentList>
</action>

<action>
<name>AddPortMapping </name>
<argumentList>

<argument>
<name>NewRemoteHost</name>
<relatedStateVariable>RemoteHost</relatedStateVariable>
<direction>in</direction>
</argument>

<argument>
<name>NewExternalPort</name>

<relatedStateVariable>ExternalPort</relatedStateVariable>
<direction>in</direction>
</argument>

<argument>
<name>NewProtocol</name>
<relatedStateVariable>PortMappingProtocol</relatedStateVariable>
<direction>in</direction>

</argument>

<argument>
<name>NewInternalPort</name>
<relatedStateVariable>InternalPort</relatedStateVariable>
<direction>in</direction>
</argument>

<argument>

<name>NewInternalClient</name>
<relatedStateVariable>InternalClient</relatedStateVariable>
<direction>in</direction>
</argument>

<argument>
<name>NewEnabled</name>
<relatedStateVariable>PortMappingEnabled</relatedStateVariable>

<direction>in</direction>
</argument>

<argument>
<name>NewPortMappingDescription</name>
<relatedStateVariable>PortMappingDescription</relatedStateVariable>
<direction>in</direction>
</argument>


<argument>
<name>NewLeaseDuration</name>
<relatedStateVariable>PortMappingLeaseDuration</relatedStateVariable>
<direction>in</direction>
</argument>
</argumentList>
</action>

<action>
<name>DeletePortMapping</name>
<argumentList>
<argument>
<name>NewRemoteHost</name>
<relatedStateVariable>RemoteHost</relatedStateVariable>
<direction>in</direction>

</argument>

<argument>
<name>NewExternalPort</name>
<relatedStateVariable>ExternalPort</relatedStateVariable>
<direction>in</direction>
</argument>

<argument>

<name>NewProtocol</name>
<relatedStateVariable>PortMappingProtocol</relatedStateVariable>
<direction>in</direction>
</argument>
</argumentList>
</action>

<action>
<name>GetExternalIPAddress</name>

<argumentList>
<argument>
<name>NewExternalIPAddress</name>
<relatedStateVariable>ExternalIPAddress</relatedStateVariable>
<direction>out</direction>
</argument>
</argumentList>

</action>
</actionList>

<serviceStateTable>
<stateVariable sendEvents="no">
<name>ConnectionType</name>
<dataType>string</dataType>
</stateVariable>

<stateVariable sendEvents="yes">
<name>PossibleConnectionTypes</name>

<dataType>string</dataType>
<allowedValueList>
<allowedValue>Unconfigured</allowedValue>
<allowedValue>IP_Routed</allowedValue>
<allowedValue>IP_Bridged</allowedValue>
</allowedValueList>
</stateVariable>

<stateVariable sendEvents="yes">
<name>ConnectionStatus</name>
<dataType>string</dataType>
<allowedValueList>
<allowedValue>Unconfigured</allowedValue>
<allowedValue>Connecting</allowedValue>
<allowedValue>Connected</allowedValue>

<allowedValue>PendingDisconnect</allowedValue>
<allowedValue>Disconnecting</allowedValue>
<allowedValue>Disconnected</allowedValue>
</allowedValueList>
</stateVariable>

<stateVariable sendEvents="no">
<name>Uptime</name>

<dataType>ui4</dataType>
</stateVariable>

<stateVariable sendEvents="no">
<name>LastConnectionError</name>
<dataType>string</dataType>
<allowedValueList>
<allowedValue>ERROR_NONE</allowedValue>

<allowedValue>ERROR_COMMAND_ABORTED</allowedValue>
<allowedValue>ERROR_NOT_ENABLED_FOR_INTERNET</allowedValue>
<allowedValue>ERROR_USER_DISCONNECT</allowedValue>
<allowedValue>ERROR_ISP_DISCONNECT</allowedValue>
<allowedValue>ERROR_IDLE_DISCONNECT</allowedValue>
<allowedValue>ERROR_FORCED_DISCONNECT</allowedValue>

<allowedValue>ERROR_NO_CARRIER</allowedValue>
<allowedValue>ERROR_IP_CONFIGURATION</allowedValue>
<allowedValue>ERROR_UNKNOWN</allowedValue>
</allowedValueList>
</stateVariable>

<stateVariable sendEvents="no">
<name>RSIPAvailable</name>

<dataType>boolean</dataType>
</stateVariable>

<stateVariable sendEvents="no">
<name>NATEnabled</name>
<dataType>boolean</dataType>
</stateVariable>

<stateVariable sendEvents="yes">
<name>ExternalIPAddress</name>

<dataType>string</dataType>
</stateVariable>

<stateVariable sendEvents="yes">
<name>PortMappingNumberOfEntries</name>
<dataType>ui2</dataType>
</stateVariable>

<stateVariable sendEvents="no">
<name>PortMappingEnabled</name>

<dataType>boolean</dataType>
</stateVariable>

<stateVariable sendEvents="no">
<name>PortMappingLeaseDuration</name>
<dataType>ui4</dataType>
</stateVariable>

<stateVariable sendEvents="no">
<name>RemoteHost</name>

<dataType>string</dataType>
</stateVariable>

<stateVariable sendEvents="no">
<name>ExternalPort</name>
<dataType>ui2</dataType>
</stateVariable>

<stateVariable sendEvents="no">
<name>InternalPort</name>

<dataType>ui2</dataType>
</stateVariable>

<stateVariable sendEvents="no">
<name>PortMappingProtocol</name>
<dataType>string</dataType>
<allowedValueList>
<allowedValue>TCP</allowedValue>

<allowedValue>UDP</allowedValue>
</allowedValueList>
</stateVariable>

<stateVariable sendEvents="no">
<name>InternalClient</name>
<dataType>string</dataType>
</stateVariable>

<stateVariable sendEvents="no">

<name>PortMappingDescription</name>
<dataType>string</dataType>
</stateVariable>
</serviceStateTable>
</scpd>

And I think it's a bug with my router... uTorrent POSTs to /upnp/control?WANIPConnection (and it always fails with the same 401); by using netcat to replay the request, but sending it to /upnp/control?WANPPPConnection instead (and mentioning

WANIP in the actual request and SOAP action), it seems to work :( WinXP uses the PPP device, and thus works fine.

(Invoking GetDefaultConnectionService on the Layer3Forwarding service does tell me to use PPP though...)

Link to comment
Share on other sites

I think Firon should rethink that decision because unless ludde buys all those router who doesn't give an xml link in their error message so that he personally can test them, he will have a hard time making so that the UPnP code works for all routers.

yeah, the idea is obviously to make it as platform independent as possible so as to allow for better emulating and i suppose this might also be looking forward to porting to other OS's as well.

Link to comment
Share on other sites

UPNP is well and truly broken in v1.6 on my Netgear WGR614:

GET /upnp/service/descrip.xml HTTP/1.1
Host: 192.168.1.1:80
Connection: close

HTTP/1.0 200 OK
Server: UPnP/1.0 UPnP-Device-Host/1.0
Connection: close
Content-type: text/xml

<?xml version="1.0"?>
<root xmlns="urn:schemas-upnp-org:device-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<URLBase>http://192.168.1.1:80</URLBase>
<device>

<deviceType>urn:schemas-upnp-org:device:InternetGatewayDevice:1</deviceType>
<friendlyName>Residential Gateway</friendlyName>
<manufacturer></manufacturer>
<manufacturerURL></manufacturerURL>
<modelDescription>Residential Gateway</modelDescription>
<modelName>Residential Gateway</modelName>
<UDN>uuid:upnp-InternetGatewayDevice-1_0-00095bfe96b2</UDN>

<UPC>00000-00001</UPC>
<serviceList>
<service>
<serviceType>urn:schemas-upnp-org:service:Layer3Forwarding:1</serviceType>
<serviceId>urn:upnp-org:serviceId:L3Forwarding1</serviceId>
<controlURL>/upnp/service/Layer3Forwarding</controlURL>
<eventSubURL>/upnp/service/Layer3Forwarding</eventSubURL>

<SCPDURL>/upnp/service/L3Frwd.xml</SCPDURL>
</service>
</serviceList>
<deviceList>
<device>
<deviceType>urn:schemas-upnp-org:device:WANDevice:1</deviceType>
<friendlyName>Residential Gateway</friendlyName>

<manufacturer></manufacturer>
<manufacturerURL></manufacturerURL>
<modelDescription>Residential Gateway</modelDescription>
<modelName>Residential Gateway</modelName>
<modelNumber>1</modelNumber>
<modelURL></modelURL>
<serialNumber>0000001</serialNumber>

<UDN>uuid:upnp-WANDevice-1_0-00095bfe96b2</UDN>
<UPC>00000-00001</UPC>
<serviceList>
<service>
<serviceType>urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1</serviceType>
<serviceId>urn:upnp-org:serviceId:WANCommonInterfaceConfig</serviceId>
<controlURL>/upnp/service/WANCommonInterfaceConfig</controlURL>

<eventSubURL>/upnp/service/WANCommonInterfaceConfig</eventSubURL>
<SCPDURL>/upnp/service/WANCICfg.xml</SCPDURL>
</service>
</serviceList>
<deviceList>
<device>
<deviceType>urn:schemas-upnp-org:device:WANConnectionDevice:1</deviceType>

<friendlyName>Residential Gateway</friendlyName>
<manufacturer></manufacturer>
<manufacturerURL></manufacturerURL>
<modelDescription>Residential Gateway</modelDescription>
<modelName>Residential Gateway</modelName>
<modelNumber>1</modelNumber>
<modelURL></modelURL>

<serialNumber>0000001</serialNumber>
<UDN>uuid:upnp-WANConnectionDevice-1_0-00095bfe96b2</UDN>
<UPC>00000-00001</UPC>
<serviceList>
<service>
<serviceType>urn:schemas-upnp-org:service:WANIPConnection:1</serviceType>
<serviceId>urn:upnp-org:serviceId:WANIPConnection</serviceId>

<controlURL>/upnp/service/WANIPConnection</controlURL>
<eventSubURL>/upnp/service/WANIPConnection</eventSubURL>
<SCPDURL>/upnp/service/WANIPCn.xml</SCPDURL>
</service>
</serviceList>
</device>
</deviceList>

</device>
</deviceList>
<presentationURL>/start.htm</presentationURL>
</device>
</root>

POST /upnp/service/WANIPConnection HTTP/1.1
HOST: 192.168.1.1:80
CONTENT-LENGTH: 353
CONTENT-TYPE: text/xml; charset="utf-8"
SOAPACTION: "urn:schemas-upnp-org:service:WANIPConnection:1#GetGenericPortMappingEntry"

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

HTTP/1.1 200 OK
Cache-Control:max-age=1800
Location:http://192.168.1.1:80/upnp/service/descrip.xml
Server:NT/5.0 UPnP/1.0
ST:upnp:rootdevice
EXT:
USN:uuid:upnp-InternetGatewayDevice-1_0-00095bfe96b2::upnp:rootdevice

POST /upnp/service/WANIPConnection HTTP/1.1
HOST: 192.168.1.1:80
CONTENT-LENGTH: 617
CONTENT-TYPE: text/xml; charset="utf-8"
SOAPACTION: "urn:schemas-upnp-org:service:WANIPConnection:1#AddPortMapping"

<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:AddPortMapping xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1">
<NewRemoteHost></NewRemoteHost>
<NewExternalPort>20205</NewExternalPort>
<NewProtocol>TCP</NewProtocol>
<NewInternalPort>20205</NewInternalPort>
<NewInternalClient>192.168.1.3</NewInternalClient>
<NewEnabled>1</NewEnabled>
<NewPortMappingDescription>utorrent</NewPortMappingDescription>
<NewLeaseDuration>0</NewLeaseDuration>
</u:AddPortMapping>
</s:Body>
</s:Envelope>

Link to comment
Share on other sites

I would like to add my name as a list of another who uPnP no longer works in v1.6 for. Last working built that uPnP worked was 1.5.1 Beta build 460. I'm using a D-Link DGL-4300 Router Firmware v1.6, everything seems to work fine with windows xp sr2 and other programs. I revert back to 1.5.1 Beta Build 460 and i have no upnp issues.

Link to comment
Share on other sites

not sure what you mean, i just get a message in the logger section of utorrent v1.6 that says unable to map UPnP port. If i go to the speed guide portion and try to test, it says the port does not appear to be open. This does not happen in build 460 i dont get this logger error, and when i do the speedtest, it says its open and accepting connections.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...