UPNP command line wrapper?

D

drbob

Hello,

I have a couple of programs that don't support upnp which need open
ports in my router firewall (e.g a vnc server and a client in listening
mode). Rather than leave the ports open permanently I was hoping to
create a script that would open the ports via upnp when the program
launches and closes them again when it shuts down.

Is there a command line interface to the windows xp upnp api? I wasn't
able to find any mention of such a thing with several web searches.

Alternatively does anyone know of a wrapper program that can open a set
port range via upnp, launch an application and close the ports again
when the app terminates?

I know it is possible to manually open a port via upnp using the
properties dialog of the "internet gateway" icon which appears in
Network Connections for a upnp enabled router, however it is time
consuming to manually open the port each time I need to launch the vnc
server.

Thanks in advance for any help.
 
P

Paul Johnson

drbob said:
Is there a command line interface to the windows xp upnp api? I wasn't
able to find any mention of such a thing with several web searches.

Is there any way you could put dd-wrt[1] or something similar on your
router, and write a script to telnet/ssh into the router and run the
appropriate commands there?

[1] http://www.dd-wrt.com/
 
D

drbob

Paul said:
Is there any way you could put dd-wrt[1] or something similar on your
router, and write a script to telnet/ssh into the router and run the
appropriate commands there?

I don't thinks so. My router is a Texas Instruments chipset based Zyxel
- it runs Zyxels own custom zynos firmware. It might be possible to
script something using the zynos telnet interface but it would be a
pretty ugly hack.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top