#6 allow way to specify router IP

pending
None
5
2012-09-15
2012-03-10
Anonymous
No

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 (192.168.2.1), 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.

Discussion

  • 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: http://192.168.179.1:49000/igddesc.xml 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!

     


Anonymous

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