miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

random port forw

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Feature Request
View previous topic :: View next topic  
Author Message
alucard3186



Joined: 05 Jun 2010
Posts: 8

PostPosted: Sun Aug 29, 2010 4:36 pm    Post subject: random port forw Reply with quote

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
View user's profile Send private message Send e-mail
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1431

PostPosted: Tue Aug 31, 2010 10:54 am    Post subject: Reply with quote

why dont you use $RANDOM ?
upnpc -a 192.168.1.3 1000 $RANDOM TCP
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
alucard3186



Joined: 05 Jun 2010
Posts: 8

PostPosted: Fri Sep 10, 2010 10:12 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1431

PostPosted: Sun Sep 12, 2010 6:04 pm    Post subject: Reply with quote

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.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Feature Request All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.