Jump to content
Comet Forums

UPnP does not work with miniupnpd 2.2.0-4

Recommended Posts

My router has miniupnpd 2.2.0-4.

When I start BitComet 1.77 I can see in the router UI that the relevant UPnP redirects are added.

However, when I check the new firewall rules on the router, I see the source is set to, when it should be


I was able to find the cause of the problem.

If you look at the request:

POST /ctl/IPConn HTTP/1.1
Accept: */*
CONTENT-TYPE: text/xml;charset="utf-8"
SOAPACTION: "urn:schemas-upnp-org:service:WANIPConnection:1#AddPortMapping"
Content-Length: 628
Cache-Control: no-cache

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<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>6790</NewExternalPort><NewProtocol>TCP</NewProtocol><NewInternalPort>6790</NewInternalPort><NewInternalClient></NewInternalClient><NewEnabled>1</NewEnabled><NewPortMappingDescription>BitComet TCP</NewPortMappingDescription><NewLeaseDuration>0</NewLeaseDuration></u:AddPortMapping></s:Body></s:Envelope>


you can see that the NewRemoteHost tag contains a single space. I believe that this tag should be empty.

That is what I see in http://upnp.org/specs/gw/UPnP-gw-WANIPConnection-v2-Service.pdf


2.3.17 RemoteHost This variable represents the source of inbound IP packets. This variable can contain a host name or a standard IPv4 address representation. This state variable MUST be formatted as:

• a domain name of a network host like it is defined in [RFC 1035],

• or as a set of four decimal digit groups separated by "." as defined in [RFC 3986],

• or an empty string


Could you please fix this issue?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...