View previous topic :: View next topic |
Author |
Message |
alucard3186
Joined: 05 Jun 2010 Posts: 8
|
Posted: Sun Aug 29, 2010 4:36 pm Post subject: random port forw |
|
|
Yo, i need to do somthink like this:
upnpc -opt 192.168.1.3 1000 tcp
and the result is :
4.3.2.1:random_port_chosen_by_router redirected in 192.168.1.3:1000.
thks. _________________ I WILL WORK |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Tue Aug 31, 2010 10:54 am Post subject: |
|
|
why dont you use $RANDOM ?
upnpc -a 192.168.1.3 1000 $RANDOM TCP _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
alucard3186
Joined: 05 Jun 2010 Posts: 8
|
Posted: Fri Sep 10, 2010 10:12 am Post subject: |
|
|
it seen that is a command linux and it is handled by a command interpret,
but i need that the router/modem who choose the available externale port and the function UPNP_AddPortMapping(...) return the port choosen by the router. _________________ I WILL WORK |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Sun Sep 12, 2010 6:04 pm Post subject: |
|
|
alucard3186 wrote: | it seen that is a command linux and it is handled by a command interpret,
but i need that the router/modem who choose the available externale port and the function UPNP_AddPortMapping(...) return the port choosen by the router. |
I dont think that is possible. _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
|