This forum has been archived. All content is frozen. Please use KDE Discuss instead.

2.0b - UPnP not working with my NetGear WGR614

Tags: None
(comma "," separated)
myleftfoot
Registered Member
Posts
2
Karma
0
Hi all, I downloaded the lastest from svn today and I was trying to get UPnP to work. I tried with the 1.2 version that ships with ubuntu and it didn't work. I decided to tryout the latest seeing that there was bug fixes around UPnP. There is no crash, it just doesn't forward the ports.

Also, is there a document that lists the UPnP routers that are known to work with ktorrent?

system:
ubuntu 6.06 all patched
kernel 2.6.15-23-386
kde 3.5.2
ktorrent 2.0dev with upnp plugin loaded.

router:
netgear WGR614 with UPnP enabled.

when I run rescan from within ktorrent i get the following in the log window
---
Code: Select all
Trying to find UPnP devices on the local network
Valid Internet Gateway Device has responded, parsing response....
Server : Ambit OS/1.0 UPnP/1.0 AMBIT-UPNP/1.0
Location : http://192.168.1.1:80/Public_UPNP_gatedesc.xml

---
i ran the ktupnptest and I saved off the log file. I didn't see a way to attach a file to post so here it is... sorry if this is long

ktupnptest.log
---
Code: Select all
UPnPTestApp started up !
Trying to find UPnP devices on the local network
Sending :
M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
ST:urn:schemas-upnp-org:device:InternetGatewayDevice:1
MAN:"ssdp:discover"
MX:3


Received :
HTTP/1.1 200 OK
SERVER: Ambit OS/1.0 UPnP/1.0 AMBIT-UPNP/1.0
EXT:
LOCATION: http://192.168.1.1:80/Public_UPNP_gatedesc.xml
CACHE-CONTROL: max-age=3600
ST: urn:schemas-upnp-org:device:InternetGatewayDevice:1
USN: uuid:e3deaafc-bbb2-abc4-3ddd-b7decf2a43c6::urn:schemas-upnp-org:device:InternetGatewayDevice:1


Valid Internet Gateway Device has responded, parsing response....
Server : Ambit OS/1.0 UPnP/1.0 AMBIT-UPNP/1.0
Location : http://192.168.1.1:80/Public_UPNP_gatedesc.xml
UPnPRouter :
Friendly name = WAN Connection Device
Manufacterer = NETGEAR, Inc.
Model description = Residential Gateway
Model name = Residential Gateway
Model number =
Service :
    servicetype = urn:schemas-upnp-org:service:Layer3Forwarding:1
    controlurl = Public_UPNP_C1
    eventsuburl = Public_UPNP_Event_1
    scpdurl = Public_UPNP_Layer3F.xml
    serviceid = urn:upnp-org:serviceId:L3Forwarding1
Done
Service :
    servicetype = urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1
    controlurl = Public_UPNP_C2
    eventsuburl = Public_UPNP_Event_2
    scpdurl = Public_UPNP_WAND.xml
    serviceid = urn:upnp-org:serviceId:WANCommonIFC1
Done
Service :
    servicetype = urn:schemas-upnp-org:service:WANIPConnection:1
    controlurl = Public_UPNP_C3
    eventsuburl = Public_UPNP_Event_3
    scpdurl = Public_UPNP_WANIPConn.xml
    serviceid = urn:upnp-org:serviceId:WANIPConn1
Done
Done
Forwarding port 9999 (TCP)
Sending
POST Public_UPNP_C3 HTTP/1.1
HOST: 192.168.1.1:80
Content-length: 638
Content-Type: text/xml
SOAPAction: "urn:schemas-upnp-org:service:WANIPConnection:1#AddPortMapping"

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

Got reply :
HTTP/1.0 404 Not Found
Content-type: text/html

<html>
<head><title>404 Not Found</title></head>
<body><h1>404 Not Found</h1>
<p>The resource you have requested is not available.</p></body>
</html>

UPnPRouter : Error


---

in case you would like the Public_UPNP_gatedesc.xml
---
Code: Select all
<?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>
   <presentationURL>/start.htm</presentationURL>
   <friendlyName>Residential Gateway</friendlyName>
   <manufacturer>NETGEAR, Inc.</manufacturer>
   <manufacturerURL>http://www.NETGEAR.com</manufacturerURL>
   <modelDescription>Residential Gateway</modelDescription>
   <modelName>Residential Gateway</modelName>
   <UDN>uuid:e3deaafc-bbb2-abc4-3ddd-b7decf2a43c6</UDN>
   <serviceList>
      <service>
         <serviceType>urn:schemas-upnp-org:service:Layer3Forwarding:1</serviceType>
         <serviceId>urn:upnp-org:serviceId:L3Forwarding1</serviceId>
         <SCPDURL>Public_UPNP_Layer3F.xml</SCPDURL>
         <controlURL>Public_UPNP_C1</controlURL>
         <eventSubURL>Public_UPNP_Event_1</eventSubURL>
      </service>
   </serviceList>
   <deviceList>
      <device>
         <deviceType>urn:schemas-upnp-org:device:WANDevice:1</deviceType>
         <friendlyName>WAN Device</friendlyName>
         <manufacturer>NETGEAR, Inc.</manufacturer>
         <manufacturerURL>http://www.NETGEAR.com</manufacturerURL>
         <modelDescription>Residential Gateway</modelDescription>
         <modelName>Residential Gateway</modelName>
         <UDN>uuid:bb212572-1e5c-8917-332e-2c6f5135942c</UDN>
         <serviceList>
            <service>
               <serviceType>urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1</serviceType>
               <serviceId>urn:upnp-org:serviceId:WANCommonIFC1</serviceId>
               <SCPDURL>Public_UPNP_WAND.xml</SCPDURL>
               <controlURL>Public_UPNP_C2</controlURL>
               <eventSubURL>Public_UPNP_Event_2</eventSubURL>
            </service>
         </serviceList>
         <deviceList>
            <device>
            <deviceType>urn:schemas-upnp-org:device:WANConnectionDevice:1</deviceType>
            <friendlyName>WAN Connection Device</friendlyName>
            <manufacturer>NETGEAR, Inc.</manufacturer>
            <manufacturerURL>http://www.NETGEAR.com</manufacturerURL>
            <modelDescription>Residential Gateway</modelDescription>
            <modelName>Residential Gateway</modelName>
            <UDN>uuid:d6489516-855b-b7f4-3fd7-9ded86c2dcda</UDN>
            <serviceList>
               <service>
                  <serviceType>urn:schemas-upnp-org:service:WANIPConnection:1</serviceType>
                  <serviceId>urn:upnp-org:serviceId:WANIPConn1</serviceId>
                  <SCPDURL>Public_UPNP_WANIPConn.xml</SCPDURL>
                  <controlURL>Public_UPNP_C3</controlURL>
                  <eventSubURL>Public_UPNP_Event_3</eventSubURL>
               </service>
            </serviceList>
            </device>
         </deviceList>
      </device>
   </deviceList>
</device>
</root>


let me know if you would like more info or any other xml file from the router.

Regards,


-lefty
myleftfoot
Registered Member
Posts
2
Karma
0

Problem solved

Sun May 28, 2006 4:14 am
Ok, i updated the FW on the router and I reran ktupnptest. This time it all worked. At least now if someone else has the same router with the same firmware we know it works if they update there FW.



Code: Select all
UPnPTestApp started up !
Trying to find UPnP devices on the local network
Sending :
M-SEARCH * HTTP/1.1

HOST: 239.255.255.250:1900

ST:urn:schemas-upnp-org:device:InternetGatewayDevice:1

MAN:"ssdp:discover"

MX:3



Received :
HTTP/1.1 200 OK

SERVER: Ambit OS/1.0 UPnP/1.0 AMBIT-UPNP/1.0

EXT:

LOCATION: http://192.168.1.1:80/Public_UPNP_gatedesc.xml

CACHE-CONTROL: max-age=3600

ST: urn:schemas-upnp-org:device:InternetGatewayDevice:1

USN: uuid:e3deaafc-bbb2-abc4-3ddd-b7decf2a43c6::urn:schemas-upnp-org:device:InternetGatewayDevice:1



Valid Internet Gateway Device has responded, parsing response....
Server : Ambit OS/1.0 UPnP/1.0 AMBIT-UPNP/1.0
Location : http://192.168.1.1:80/Public_UPNP_gatedesc.xml
UPnPRouter :
Friendly name = WAN Connection Device
Manufacterer = NETGEAR, Inc.
Model description = Residential Gateway
Model name = Residential Gateway
Model number =
Service :
    servicetype = urn:schemas-upnp-org:service:Layer3Forwarding:1
    controlurl = Public_UPNP_C1
    eventsuburl = Public_UPNP_Event_1
    scpdurl = Public_UPNP_Layer3F.xml
    serviceid = urn:upnp-org:serviceId:L3Forwarding1
Done
Service :
    servicetype = urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1
    controlurl = Public_UPNP_C2
    eventsuburl = Public_UPNP_Event_2
    scpdurl = Public_UPNP_WAND.xml
    serviceid = urn:upnp-org:serviceId:WANCommonIFC1
Done
Service :
    servicetype = urn:schemas-upnp-org:service:WANIPConnection:1
    controlurl = Public_UPNP_C3
    eventsuburl = Public_UPNP_Event_3
    scpdurl = Public_UPNP_WANIPConn.xml
    serviceid = urn:upnp-org:serviceId:WANIPConn1
Done
Done
Forwarding port 9999 (TCP)
Sending
POST Public_UPNP_C3 HTTP/1.1

HOST: 192.168.1.1:80

Content-length: 638

Content-Type: text/xml

SOAPAction: "urn:schemas-upnp-org:service:WANIPConnection:1#AddPortMapping"



<?xml version="1.0"?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><m:AddPortMapping xmlns:m="urn:schemas-upnp-org:service:WANIPConnection:1"><NewRemoteHost></NewRemoteHost><NewExternalPort>9999</NewExternalPort><NewProtocol>TCP</NewProtocol><NewInternalPort>9999</NewInternalPort><NewInternalClient>192.168.1.3</NewInternalClient><NewEnabled>1</NewEnabled><NewPortMappingDescription>KTorrent UPNP 0</NewPortMappingDescription><NewLeaseDuration>0</NewLeaseDuration></m:AddPortMapping></SOAP-ENV:Body></SOAP-ENV:Envelope>

Got reply :
HTTP/1.1 200 OK

CONTENT-LENGTH:267

CONTENT-TYPE:text/xml; charset="utf-8"

EXT:

SERVER:Ambit OS/1.0 UPnP/1.0 AMBIT-UPNP/1.0



<?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:AddPortMappingResponse xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1"/>

</s:Body></s:Envelope>

UPnPRouter : OK


Thank you for your help,


-lefty
George
Moderator
Posts
5421
Karma
1

Sun May 28, 2006 9:00 am
I guess we will have to remember that if somebody else comes along with a netgear WGR614.


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]