kaklakariada / portmapper

A tool for managing port forwardings via UPnP
GNU General Public License v3.0
675 stars 90 forks source link

Specify router IP instead of discovery (enhancement) #9

Open my2038 opened 8 years ago

my2038 commented 8 years ago

I have a cascading upstream router (2 routers configuration) and portmapper can only discovery the second router. Is it possible to specify the ip address on the command line of the upstream router so that we can configure the forwarding port?

mikeshultz commented 8 years ago

+1

kaklakariada commented 7 years ago

I am not sure if the UPnP libraries I use support specifying the IP of a router. I will investigate this.

baq99 commented 2 months ago

I too have this issue. I'm running a mesh system using two routers and Portmapper cannot find the master router, only the mesh router in proximity to the PC. This does not successfully forward ports through UPnP. Any joy adding specific IP support?

kaklakariada commented 2 months ago

Sorry for the late answer. Seems that this is already implemented, see the readme for details.

Start PortMapper like this and use the Weupnp library:

java "-Dportmapper.locationUrl=<locationurl>" -jar portmapper.jar

The URL should look like this: http://192.168.178.1:49000/igddesc.xml.