#6 allow way to specify router IP


I have routers/gateways two deep to get to the Internet. Your program detects the first router fine, but there is another router I need to set the port forwarding for. I know it's address (, it would be nice to be able to manually specify the address to select this router since only routers directly connected to my PC are detected. A command line option would be acceptable.


  • Christoph

    Christoph - 2012-03-13

    The UPnP libraries used in port mapper only support automatic discovery of routers. As your second router is in another network it can't be detected by a broadcast.
    I don't have the source for the SBBI UPnP lib, but the weupnp lib seems to support selecting a pre-defined router. I will have to investigate, if this really works.

  • Christoph

    Christoph - 2012-03-13

    Please try the new release 1.9.5. You can specify the URL UPnP descriptor URL by calling port mapper like this:

    java -Dportmapper.locationUrl=<url> -jar PortMapper-dev.jar

    The url looks like this: but can be different for your model. You can find out the url by connecting 'the normal way' and displaying the router info.

    Note: this is only supported for the weupnp library.

    Please tell me, if this works for you!



Cancel  Add attachments

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks