Registered Member
|
George, is there anything i can supply so you can moddify the code to get UpNp to work with my router?
|
Moderator
|
|
Registered Member
|
http://www.2shared.com/file/4438881/77e ... shark.html |
Moderator
|
For ktorrent, everything seems to be OK :
- ktorrent discovers the router - It then downloads the XML description - It then does a HTTP POST to forward a port After that the router doesn't answer back, normally you would get back a 200 OK or a 500 internal server error, or something else. But it just doesn't respond anymore. I'm thinking the upnp process on the router crashes. So it seems that your only hope is to find a newer firmware version, and hopefully that has this bug fixed. |
Registered Member
|
|
Moderator
|
|
Registered Member
|
|
Moderator
|
There is nothing fundamentally different between the two, except for the fact that µTorrent sends more information in the http header (nothing important though), and it sends some additional attributes for some parameters.
This is what KT sends : <?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>4000</NewExternalPort><NewProtocol>UDP</NewProtocol><NewInternalPort>4000</NewInternalPort><NewInternalClient>192.168.0.4</NewInternalClient><NewEnabled>1</NewEnabled><NewPortMappingDescription>KTorrent UPNP 0</NewPortMappingDescription><NewLeaseDuration>0</NewLeaseDuration></m:AddPortMapping></SOAP-ENV:Body></SOAP-ENV:Envelope> This is what µTorrent sends : <?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 xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="string"></NewRemoteHost><NewExternalPort xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="ui2">30112</NewExternalPort><NewProtocol xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="string">TCP</NewProtocol><NewInternalPort xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="ui2">30112</NewInternalPort><NewInternalClient xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="string">192.168.0.2</NewInternalClient><NewEnabled xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="boolean">1</NewEnabled><NewPortMappingDescription xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="string">uTorrent (TCP)</NewPortMappingDescription><NewLeaseDuration xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="ui4">0</NewLeaseDuration></m:AddPortMapping></SOAP-ENV:Body></SOAP-ENV:Envelope> These microsoft specific attributes are not required, as far as I know. I will send you some patches tomorrow, to do some more tests. Which version are you running ? |
Registered Member
|
|
Registered Member
|
|
Moderator
|
|
Moderator
|
|
Registered Member
|
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]