https://bugs.kde.org/show_bug.cgi?id=363126
Bug ID: 363126 Summary: UPnP not working with at least tp-link routers in ktorrent 5.0 Product: ktorrent Version: 5.0 Platform: Other OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: general Assignee: joris.guis...@gmail.com Reporter: vovochk...@gmail.com Getting Unknown error on UPnP port forwarding. Acording to tcpdump: Request: POST /ipc HTTP/1.1 Host: 192.168.0.1:1900 User-Agent: KTorrent/5.0dev Content-length: 606 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"><NewExternalPort>8888</NewExternalPort><NewProtocol>UDP</NewProtocol><NewInternalPort>8888</NewInternalPort><NewInternalClient>192.168.0.101</NewInternalClient><NewEnabled>1</NewEnabled><NewPortMappingDescription>KTorrent UPNP 32</NewPortMappingDescription><NewLeaseDuration>0</NewLeaseDuration></m:AddPortMapping></SOAP-ENV:Body></SOAP-ENV:Envelope> Response: HTTP/1.1 500 Internal Server Error CONTENT-LENGTH: 474 CONTENT-TYPE: text/xml; charset="utf-8" DATE: Mon, 16 May 2016 21:51:58 GMT EXT: SERVER: ipos/7.0 UPnP/1.0 TL-WDR4300/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> <SOAP-ENV:Fault> <faultcode>SOAP-ENV:Client</faultcode> <faultstring>UPnPError</faultstring> <detail> <UPnPError xmlns="urn:schemas-upnp-org:control-1-0"> <errorCode>402</errorCode> <errorDescription>No RemoteHost</errorDescription> </UPnPError> </detail> </SOAP-ENV:Fault> </SOAP-ENV:Body> </SOAP-ENV:Envelope> The only defference with 4.x ktorrent is absent <NewRemoteHost></NewRemoteHost> block. Here is an ktorrent 4.x request: POST /ipc HTTP/1.1 Host: 192.168.0.1:1900 User-Agent: KTorrent/4.3.1 Content-length: 636 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>6882</NewExternalPort><NewProtocol>UDP</NewProtocol><NewInternalPort>6882</NewInternalPort><NewInternalClient>192.168.0.104</NewInternalClient><NewEnabled>1</NewEnabled><NewPortMappingDescription>KTorrent UPNP 0</NewPortMappingDescription><NewLeaseDuration>0</NewLeaseDuration></m:AddPortMapping></SOAP-ENV:Body></SOAP-ENV:Envelope> Reproducible: Always -- You are receiving this mail because: You are watching all bug changes.